Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 192.1 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 51.86 kB / 370.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.267, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003989/0.271, allocations: 1.836 MB / 424.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.2724, allocations: 0.6311 MB / 425 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.2725, allocations: 7.938 kB / 425 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.2727, allocations: 27.72 kB / 425.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.2729, allocations: 27.78 kB / 425.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006218/0.2735, allocations: 150 kB / 425.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.2737, allocations: 147.6 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.2739, allocations: 45.66 kB / 425.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.274, allocations: 59.78 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.2742, allocations: 51.7 kB / 425.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.539e-05/0.2742, allocations: 12 kB / 425.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.2743, allocations: 55.89 kB / 425.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.436e-05/0.2744, allocations: 43.84 kB / 425.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.749e-05/0.2745, allocations: 55.66 kB / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003136/0.2748, allocations: 200.8 kB / 425.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2748, allocations: 0 / 425.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2748, allocations: 0 / 425.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.2748, allocations: 0 / 425.9 MB, free: 11.02 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.0007754/0.2756, allocations: 409.5 kB / 426.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2756, allocations: 15.97 kB / 426.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.383e-05/0.2757, allocations: 46.73 kB / 426.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.397e-05/0.2757, allocations: 20.8 kB / 426.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003601/0.2761, allocations: 175.3 kB / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.2761, allocations: 8.562 kB / 426.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.2761, allocations: 15.94 kB / 426.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007262/0.2769, allocations: 356.9 kB / 426.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2769, allocations: 3.984 kB / 426.9 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.2769, allocations: 8 kB / 426.9 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.2769, allocations: 4 kB / 426.9 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002418/0.2771, allocations: 87.39 kB / 427 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003973/0.2775, allocations: 288.7 kB / 427.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004629/0.278, allocations: 181.3 kB / 427.5 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/0.2782, allocations: 89.73 kB / 427.6 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003806/0.2786, allocations: 63.88 kB / 427.6 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.2786, allocations: 38.56 kB / 427.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.663e-06/0.2786, allocations: 0 / 427.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006228/0.2792, allocations: 249.2 kB / 427.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.2793, allocations: 110.8 kB / 428 MB, free: 8.707 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.2795, allocations: 198.2 kB / 428.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.2796, allocations: 29.7 kB / 428.3 MB, free: 8.469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.623e-05/0.2797, allocations: 104.6 kB / 428.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.797e-05/0.2797, allocations: 23.83 kB / 428.4 MB, free: 8.336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.722e-05/0.2798, allocations: 33.72 kB / 428.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.28, allocations: 334.8 kB / 428.7 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.902e-05/0.2801, allocations: 36.11 kB / 428.8 MB, free: 7.926 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.2803, allocations: 190.8 kB / 429 MB, free: 7.672 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/0.2805, allocations: 200.1 kB / 429.2 MB, free: 7.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2805, allocations: 4 kB / 429.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003547/0.2809, allocations: 221 kB / 429.4 MB, free: 7.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.2809, allocations: 8.594 kB / 429.4 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.2809, allocations: 8 kB / 429.4 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.2809, allocations: 12 kB / 429.4 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.2811, allocations: 39.92 kB / 429.4 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.2811, allocations: 4 kB / 429.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.2812, allocations: 23.88 kB / 429.5 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.2812, allocations: 12 kB / 429.5 MB, free: 7.086 MB / 334.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.0001444/0.2814, allocations: 149.2 kB / 429.6 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003311/0.2817, allocations: 172.6 kB / 429.8 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000371/0.2821, allocations: 183.3 kB / 430 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.2821, allocations: 4 kB / 430 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2821, allocations: 0 / 430 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2821, allocations: 0 / 430 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002247/0.2823, allocations: 180.6 kB / 430.2 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.2823, allocations: 4 kB / 430.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.2825, allocations: 35.91 kB / 430.2 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2825, allocations: 0 / 430.2 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.2825, allocations: 8 kB / 430.2 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.2825, allocations: 4 kB / 430.2 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2825, allocations: 0 / 430.2 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004434/0.2829, allocations: 284.1 kB / 430.5 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.876e-05/0.283, allocations: 39.88 kB / 430.5 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.573e-05/0.2831, allocations: 8 kB / 430.5 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.2832, allocations: 7.984 kB / 430.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.043e-05/0.2832, allocations: 4 kB / 430.5 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.2832, allocations: 11.97 kB / 430.6 MB, free: 5.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001301/0.2834, allocations: 152.2 kB / 430.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2834, allocations: 0 / 430.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003078/0.2837, allocations: 32 kB / 430.7 MB, free: 5.754 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: 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.0009866/0.2847, allocations: 0.9199 MB / 431.7 MB, free: 4.805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003298/0.285, allocations: 139.9 kB / 431.8 MB, free: 4.668 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.285, allocations: 4 kB / 431.8 MB, free: 4.664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.826e-05/0.285, allocations: 8 kB / 431.8 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005996/0.2856, allocations: 144.7 kB / 431.9 MB, free: 4.512 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.2882, allocations: 2.156 MB / 434.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.2883, allocations: 131.3 kB / 434.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.068e-05/0.2884, allocations: 17.48 kB / 434.2 MB, free: 1.992 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.557e-05/0.2885, allocations: 43.42 kB / 434.3 MB, free: 1.949 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2885, allocations: 0 / 434.3 MB, free: 1.949 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03137/0.3199, allocations: 4.982 MB / 439.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.51, allocations: 3.375 kB / 439.3 MB, free: 13.12 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.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.986163103953004]