Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002488/0.002488, allocations: 210.8 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.414/1.414, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 47.94 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2572, allocations: 53.36 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003015/0.2602, allocations: 1.577 MB / 432.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.2613, allocations: 0.5143 MB / 433.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.912e-05/0.2614, allocations: 3.938 kB / 433.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.71e-05/0.2615, allocations: 3.938 kB / 433.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001525/0.2616, allocations: 19.86 kB / 433.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003501/0.262, allocations: 63.45 kB / 433.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001296/0.2621, allocations: 51.78 kB / 433.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.915e-05/0.2622, allocations: 12.17 kB / 433.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.2623, allocations: 27.86 kB / 433.3 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.783e-05/0.2624, allocations: 19.86 kB / 433.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.2624, allocations: 4 kB / 433.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.122e-05/0.2624, allocations: 7.984 kB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.873e-05/0.2625, allocations: 19.92 kB / 433.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.042e-05/0.2625, allocations: 15.88 kB / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001577/0.2627, allocations: 61.36 kB / 433.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.2627, allocations: 15.94 kB / 433.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2627, allocations: 0 / 433.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2627, allocations: 0 / 433.5 MB, free: 4.215 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004841/0.2632, allocations: 313.8 kB / 433.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.2632, allocations: 8.031 kB / 433.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.36e-05/0.2632, allocations: 30.75 kB / 433.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.2634, allocations: 20.88 kB / 433.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.2637, allocations: 138.9 kB / 434 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.2637, allocations: 16.12 kB / 434 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.2637, allocations: 0 / 434 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002745/0.264, allocations: 105 kB / 434.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.264, allocations: 0 / 434.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.264, allocations: 0 / 434.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.264, allocations: 0 / 434.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.834e-05/0.264, allocations: 23.92 kB / 434.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003236/0.2644, allocations: 232.8 kB / 434.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.963e-05/0.2645, allocations: 49.16 kB / 434.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.1e-05/0.2645, allocations: 17.77 kB / 434.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.2645, allocations: 0 / 434.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.2646, allocations: 34.56 kB / 434.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.2646, allocations: 0 / 434.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002439/0.2648, allocations: 73.56 kB / 434.5 MB, free: 3.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.2649, allocations: 77.36 kB / 434.6 MB, free: 2.914 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.2651, allocations: 156.7 kB / 434.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.2651, allocations: 25.7 kB / 434.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.834e-05/0.2652, allocations: 96.09 kB / 434.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.203e-05/0.2652, allocations: 0 / 434.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.341e-05/0.2652, allocations: 13.72 kB / 434.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.2655, allocations: 318.8 kB / 435.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.014e-05/0.2655, allocations: 7.938 kB / 435.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.103e-05/0.2655, allocations: 29.64 kB / 435.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.305e-05/0.2656, allocations: 33.77 kB / 435.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2656, allocations: 0 / 435.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001242/0.2658, allocations: 57.58 kB / 435.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.2658, allocations: 4 kB / 435.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.2658, allocations: 4 kB / 435.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.2658, allocations: 4 kB / 435.3 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.693e-05/0.2659, allocations: 7.984 kB / 435.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.2659, allocations: 3.938 kB / 435.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.846e-05/0.2659, allocations: 8.062 kB / 435.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.2659, allocations: 0 / 435.4 MB, free: 2.109 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.254e-05/0.266, allocations: 117.8 kB / 435.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.003e-05/0.2661, allocations: 45.53 kB / 435.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.161e-05/0.2661, allocations: 11.81 kB / 435.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2661, allocations: 0 / 435.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.2661, allocations: 3.938 kB / 435.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.686e-06/0.2661, allocations: 0 / 435.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001848/0.2663, allocations: 136.7 kB / 435.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2663, allocations: 0 / 435.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.251e-05/0.2664, allocations: 8.031 kB / 435.7 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-06/0.2664, allocations: 7.984 kB / 435.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.2664, allocations: 4 kB / 435.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2664, allocations: 0 / 435.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2664, allocations: 3.938 kB / 435.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/0.2666, allocations: 156.3 kB / 435.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.439e-05/0.2666, allocations: 19.94 kB / 435.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.2666, allocations: 0 / 435.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.559e-05/0.2667, allocations: 0 / 435.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.733e-05/0.2667, allocations: 19.94 kB / 435.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.2667, allocations: 0 / 435.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.603e-05/0.2668, allocations: 107.3 kB / 436 MB, free: 1.402 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2668, allocations: 0 / 436 MB, free: 1.402 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002258/0.267, allocations: 8 kB / 436 MB, free: 1.395 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006028/0.2677, allocations: 0.686 MB / 436.7 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001311/0.2678, allocations: 28 kB / 436.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2678, allocations: 0 / 436.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.487e-05/0.2678, allocations: 15.94 kB / 436.7 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.2682, allocations: 26.47 kB / 436.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.2697, allocations: 1.331 MB / 438.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.762e-05/0.2698, allocations: 79.58 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.405e-05/0.2698, allocations: 0 / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.889e-05/0.2699, allocations: 19.42 kB / 438.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2699, allocations: 0 / 438.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03019/0.3001, allocations: 2.205 MB / 440.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.17, allocations: 11.11 kB / 440.4 MB, free: 13 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79319e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.660182856954634]