Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.001521/0.001521, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001649/0.001649, allocations: 212.3 kB / 23.73 MB, free: 4.16 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.41/1.41, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 47.92 kB / 377.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2507, allocations: 53.37 MB / 431.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003275/0.2539, allocations: 1.837 MB / 432.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.2553, allocations: 0.705 MB / 433.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.2554, allocations: 7.938 kB / 433.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.2555, allocations: 23.8 kB / 433.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.2556, allocations: 23.8 kB / 433.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005509/0.2562, allocations: 166.9 kB / 433.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.2564, allocations: 155.6 kB / 434 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.2565, allocations: 33.73 kB / 434 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.2567, allocations: 67.7 kB / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.2568, allocations: 51.7 kB / 434.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.276e-05/0.2568, allocations: 12 kB / 434.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.257, allocations: 59.94 kB / 434.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.86e-05/0.2571, allocations: 43.84 kB / 434.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.684e-05/0.2571, allocations: 55.61 kB / 434.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003173/0.2574, allocations: 212.8 kB / 434.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2575, allocations: 3.938 kB / 434.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2575, allocations: 4 kB / 434.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2575, allocations: 0 / 434.5 MB, free: 3.148 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007579/0.2582, allocations: 404.4 kB / 434.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.2583, allocations: 8.031 kB / 434.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.175e-05/0.2583, allocations: 42.73 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.2585, allocations: 24.8 kB / 435 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003805/0.2588, allocations: 203.5 kB / 435.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.2589, allocations: 8.562 kB / 435.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.662e-05/0.2589, allocations: 11.94 kB / 435.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006919/0.2596, allocations: 353.8 kB / 435.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2596, allocations: 0 / 435.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.2596, allocations: 15.86 kB / 435.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.545e-06/0.2596, allocations: 4 kB / 435.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002236/0.2598, allocations: 79.94 kB / 435.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004069/0.2602, allocations: 288.7 kB / 435.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004501/0.2607, allocations: 183.6 kB / 436.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.2609, allocations: 93.72 kB / 436.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003816/0.2613, allocations: 60.22 kB / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.2613, allocations: 38.5 kB / 436.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.493e-06/0.2613, allocations: 4 kB / 436.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006113/0.2619, allocations: 241.2 kB / 436.6 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.084e-05/0.262, allocations: 117.4 kB / 436.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.2622, allocations: 198.6 kB / 436.9 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.2622, allocations: 29.7 kB / 436.9 MB, free: 0.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.289e-05/0.2623, allocations: 100.6 kB / 437 MB, free: 488 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.2623, allocations: 23.95 kB / 437 MB, free: 464 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.903e-05/0.2624, allocations: 45.7 kB / 437.1 MB, free: 412 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.2625, allocations: 326.8 kB / 437.4 MB, free: 76 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.156e-05/0.2626, allocations: 35.97 kB / 437.4 MB, free: 40 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.2628, allocations: 194.8 kB / 437.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002485/0.263, allocations: 204.1 kB / 437.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.263, allocations: 0 / 437.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003392/0.2634, allocations: 221.6 kB / 438 MB, free: 15.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.2634, allocations: 8 kB / 438 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.2634, allocations: 4 kB / 438 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.2634, allocations: 7.984 kB / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.2636, allocations: 39.92 kB / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.2636, allocations: 11.94 kB / 438.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.2637, allocations: 15.95 kB / 438.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.2637, allocations: 11.98 kB / 438.1 MB, free: 15.2 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 0.0001488/0.2639, allocations: 151.4 kB / 438.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003053/0.2642, allocations: 165.4 kB / 438.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003667/0.2645, allocations: 187.2 kB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.2645, allocations: 4 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2645, allocations: 4 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2645, allocations: 0 / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002219/0.2648, allocations: 184.5 kB / 438.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.2648, allocations: 0 / 438.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001455/0.2649, allocations: 35.97 kB / 438.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.2649, allocations: 7.938 kB / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.2649, allocations: 4 kB / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2649, allocations: 0 / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.2649, allocations: 4 kB / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004377/0.2654, allocations: 284.1 kB / 439.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.337e-05/0.2655, allocations: 39.81 kB / 439.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.2655, allocations: 8 kB / 439.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.2656, allocations: 15.98 kB / 439.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.241e-05/0.2657, allocations: 0 / 439.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.2657, allocations: 4 kB / 439.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001389/0.2658, allocations: 156 kB / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2658, allocations: 0 / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.2661, allocations: 36 kB / 439.4 MB, free: 13.86 MB / 350.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: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0009742/0.2671, allocations: 0.9227 MB / 440.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003437/0.2675, allocations: 138.5 kB / 440.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2675, allocations: 0 / 440.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.103e-05/0.2675, allocations: 13.19 kB / 440.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006025/0.2681, allocations: 148.8 kB / 440.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.2706, allocations: 2.177 MB / 442.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.2707, allocations: 119.5 kB / 442.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.06e-05/0.2708, allocations: 17.48 kB / 442.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.509e-05/0.2709, allocations: 47.42 kB / 443 MB, free: 10.04 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.2709, allocations: 3.938 kB / 443 MB, free: 10.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03083/0.3017, allocations: 4.985 MB / 447.9 MB, free: 5.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.48, allocations: 11.94 kB / 448 MB, free: 5.199 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.limiter.u,sample1.limiter.y,sample1.noise.u [Calling sys.exit(0), Time elapsed: 14.014595207758248]