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.001136/0.001136, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007662/0.0007662, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.926/0.926, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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 2.184e-06/2.184e-06, allocations: 3.938 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.225e-05/2.444e-05, allocations: 2.281 kB / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.002358/0.002383, allocations: 1.812 MB / 320.3 MB, free: 4.508 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009619/0.003345, allocations: 0.6464 MB / 320.9 MB, free: 3.855 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.00345, allocations: 7.938 kB / 320.9 MB, free: 3.848 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.003586, allocations: 19.8 kB / 320.9 MB, free: 3.828 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.003732, allocations: 31.73 kB / 321 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004347/0.004166, allocations: 163.4 kB / 321.1 MB, free: 3.637 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.004328, allocations: 143.6 kB / 321.3 MB, free: 3.496 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.00445, allocations: 45.69 kB / 321.3 MB, free: 3.449 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.004559, allocations: 87.73 kB / 321.4 MB, free: 3.363 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.412e-05/0.004643, allocations: 43.83 kB / 321.4 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.446e-05/0.004667, allocations: 15.98 kB / 321.5 MB, free: 3.305 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.976e-05/0.004737, allocations: 47.97 kB / 321.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.946e-05/0.004806, allocations: 43.84 kB / 321.5 MB, free: 3.215 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.538e-05/0.004852, allocations: 43.84 kB / 321.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002164/0.005068, allocations: 207.3 kB / 321.8 MB, free: 2.969 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.005072, allocations: 7.938 kB / 321.8 MB, free: 2.961 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.005073, allocations: 0 / 321.8 MB, free: 2.961 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.005078, allocations: 0 / 321.8 MB, free: 2.961 MB / 282.7 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.0005238/0.005601, allocations: 396.9 kB / 322.2 MB, free: 2.547 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.005637, allocations: 16.84 kB / 322.2 MB, free: 2.531 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.479e-05/0.005672, allocations: 46.75 kB / 322.2 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.669e-05/0.005709, allocations: 20.8 kB / 322.3 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.005948, allocations: 185.5 kB / 322.4 MB, free: 2.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.005963, allocations: 8.562 kB / 322.5 MB, free: 2.242 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.005976, allocations: 8.375 kB / 322.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004519/0.006428, allocations: 361.2 kB / 322.8 MB, free: 1.855 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.006436, allocations: 0 / 322.8 MB, free: 1.855 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.006447, allocations: 0 / 322.8 MB, free: 1.855 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.006452, allocations: 0 / 322.8 MB, free: 1.855 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.006586, allocations: 87.94 kB / 322.9 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003047/0.00689, allocations: 288.6 kB / 323.2 MB, free: 1.441 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.007179, allocations: 189 kB / 323.4 MB, free: 1.242 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.007286, allocations: 89.73 kB / 323.5 MB, free: 1.148 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002529/0.007539, allocations: 59.94 kB / 323.5 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.007558, allocations: 38.56 kB / 323.6 MB, free: 1.043 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 1.152e-06/0.007559, allocations: 3.938 kB / 323.6 MB, free: 1.039 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003504/0.00791, allocations: 236.2 kB / 323.8 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.007972, allocations: 118.9 kB / 323.9 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.008092, allocations: 198.4 kB / 324.1 MB, free: 472 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.308e-05/0.008105, allocations: 29.64 kB / 324.1 MB, free: 436 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.031e-05/0.008156, allocations: 108.6 kB / 324.2 MB, free: 324 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.008172, allocations: 7.953 kB / 324.2 MB, free: 316 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.27e-05/0.008204, allocations: 25.7 kB / 324.3 MB, free: 284 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.666e-05/0.008301, allocations: 322.8 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.837e-05/0.008339, allocations: 23.98 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.972e-05/0.008399, allocations: 85.92 kB / 324.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.179e-05/0.008471, allocations: 75.38 kB / 324.8 MB, free: 15.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.008473, allocations: 0 / 324.8 MB, free: 15.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001151/0.008588, allocations: 113.5 kB / 324.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.008602, allocations: 4 kB / 324.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.008606, allocations: 0 / 324.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.008618, allocations: 4 kB / 324.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.836e-05/0.008676, allocations: 20.11 kB / 324.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.008681, allocations: 0 / 324.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.685e-05/0.008718, allocations: 7.938 kB / 324.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.653e-06/0.008724, allocations: 7.984 kB / 324.9 MB, free: 15.58 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (7): * Single equations (assignments): 7 * 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.079e-05/0.008815, allocations: 137.7 kB / 325 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/0.008982, allocations: 161.5 kB / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002151/0.009197, allocations: 183.3 kB / 325.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.0092, allocations: 4 kB / 325.4 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.009204, allocations: 3.938 kB / 325.4 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.00921, allocations: 7.938 kB / 325.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.009352, allocations: 172.7 kB / 325.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.009359, allocations: 4 kB / 325.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.477e-05/0.009434, allocations: 31.97 kB / 325.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.009436, allocations: 0 / 325.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.009447, allocations: 8 kB / 325.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.009448, allocations: 0 / 325.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.009449, allocations: 0 / 325.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002244/0.009673, allocations: 290.6 kB / 325.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.972e-05/0.009733, allocations: 51.77 kB / 325.9 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.009754, allocations: 8 kB / 326 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.912e-05/0.009814, allocations: 7.984 kB / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.352e-05/0.009837, allocations: 4 kB / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.009851, allocations: 7.938 kB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.797e-05/0.009929, allocations: 148.3 kB / 326.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009929, allocations: 0 / 326.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001734/0.0101, allocations: 28 kB / 326.1 MB, free: 14.27 MB / 298.7 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.000587/0.01069, allocations: 0.9114 MB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001688/0.01086, allocations: 107 kB / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.01086, allocations: 4.25 kB / 327.2 MB, free: 13.22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.733e-05/0.01088, allocations: 11.94 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000463/0.01134, allocations: 145.5 kB / 327.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.01261, allocations: 1.816 MB / 329.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.771e-05/0.01268, allocations: 127.7 kB / 329.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.647e-05/0.01272, allocations: 13.14 kB / 329.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.491e-05/0.01278, allocations: 40.48 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01279, allocations: 4 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01987/0.03265, allocations: 4.948 MB / 334.3 MB, free: 6.129 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.839/6.872, allocations: 18.72 kB / 334.3 MB, free: 6.113 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins/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: 8.72147435694933]