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.001742/0.001742, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002088/0.002088, allocations: 213.5 kB / 23.75 MB, free: 4.668 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.427/1.427, allocations: 230.6 MB / 257.5 MB, free: 8 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.001598/0.001598, allocations: 51.92 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2473, allocations: 53.36 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003527/0.2508, allocations: 1.894 MB / 433 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.2524, allocations: 0.7633 MB / 433.8 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.2525, allocations: 7.938 kB / 433.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.2527, allocations: 19.73 kB / 433.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.2528, allocations: 27.8 kB / 433.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006138/0.2535, allocations: 178.8 kB / 434 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002528/0.2537, allocations: 155.5 kB / 434.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.2538, allocations: 33.73 kB / 434.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.254, allocations: 67.7 kB / 434.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.2541, allocations: 59.69 kB / 434.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.946e-05/0.2542, allocations: 12 kB / 434.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.2543, allocations: 55.97 kB / 434.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.883e-05/0.2544, allocations: 51.77 kB / 434.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.815e-05/0.2545, allocations: 67.55 kB / 434.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003121/0.2548, allocations: 211.5 kB / 434.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2548, allocations: 0 / 434.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2548, allocations: 0 / 434.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.2548, allocations: 0 / 434.7 MB, free: 3.242 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.000757/0.2555, allocations: 409.5 kB / 435.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.2556, allocations: 8.031 kB / 435.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.535e-05/0.2556, allocations: 46.73 kB / 435.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.2558, allocations: 36.78 kB / 435.2 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004124/0.2562, allocations: 187.5 kB / 435.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.2562, allocations: 8.562 kB / 435.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.2563, allocations: 15.94 kB / 435.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006888/0.257, allocations: 330.9 kB / 435.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.257, allocations: 0 / 435.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.257, allocations: 4 kB / 435.8 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.257, allocations: 8 kB / 435.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002357/0.2572, allocations: 79.94 kB / 435.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004579/0.2577, allocations: 320.5 kB / 436.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004751/0.2582, allocations: 189.2 kB / 436.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.2583, allocations: 89.73 kB / 436.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004067/0.2588, allocations: 59.94 kB / 436.5 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.2588, allocations: 38.56 kB / 436.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.693e-06/0.2588, allocations: 0 / 436.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005964/0.2594, allocations: 241.4 kB / 436.8 MB, free: 1.051 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.796e-05/0.2595, allocations: 121.2 kB / 436.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002051/0.2597, allocations: 198.6 kB / 437.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.2597, allocations: 25.7 kB / 437.1 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.875e-05/0.2598, allocations: 104.6 kB / 437.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.143e-05/0.2598, allocations: 19.84 kB / 437.2 MB, free: 0.543 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.277e-05/0.2599, allocations: 41.7 kB / 437.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.26, allocations: 330.8 kB / 437.6 MB, free: 168 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.275e-05/0.2601, allocations: 39.98 kB / 437.6 MB, free: 128 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.2603, allocations: 169.1 kB / 437.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.2606, allocations: 200.1 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2606, allocations: 0 / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003535/0.2609, allocations: 221.1 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.261, allocations: 4 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.261, allocations: 8.594 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.261, allocations: 7.938 kB / 438.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.2611, allocations: 43.92 kB / 438.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.2611, allocations: 8 kB / 438.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.2613, allocations: 23.88 kB / 438.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.2613, allocations: 8 kB / 438.3 MB, free: 15.32 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.0001703/0.2615, allocations: 149.7 kB / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003134/0.2618, allocations: 157.5 kB / 438.6 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003764/0.2621, allocations: 191.2 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2621, allocations: 0 / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2622, allocations: 0 / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.2622, allocations: 4 kB / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002422/0.2624, allocations: 208.5 kB / 439 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.2624, allocations: 0 / 439 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.2625, allocations: 31.97 kB / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2625, allocations: 0 / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.2626, allocations: 8 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.2626, allocations: 7.938 kB / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2626, allocations: 4 kB / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004143/0.263, allocations: 280.1 kB / 439.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.816e-05/0.2631, allocations: 43.81 kB / 439.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.2631, allocations: 8 kB / 439.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.2632, allocations: 11.98 kB / 439.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.53e-05/0.2633, allocations: 4 kB / 439.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.2633, allocations: 4 kB / 439.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001336/0.2634, allocations: 152 kB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2634, allocations: 4 kB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000313/0.2637, allocations: 35.94 kB / 439.6 MB, free: 13.96 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.001009/0.2647, allocations: 0.9256 MB / 440.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003495/0.2651, allocations: 144.2 kB / 440.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2651, allocations: 0 / 440.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.465e-05/0.2651, allocations: 15.94 kB / 440.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006089/0.2657, allocations: 133.7 kB / 440.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002665/0.2684, allocations: 2.176 MB / 443 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.2688, allocations: 0.7281 MB / 443.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.682e-05/0.2689, allocations: 21.48 kB / 443.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.626e-05/0.269, allocations: 43.42 kB / 443.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.269, allocations: 0 / 443.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03259/0.3016, allocations: 4.526 MB / 448.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.39, allocations: 10.41 kB / 448.3 MB, free: 5.148 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.98106621199986]