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.001846/0.001846, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002151/0.002151, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.527/1.527, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001577/0.001577, allocations: 47.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.132, allocations: 53.33 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003418/0.1355, allocations: 1.882 MB / 428.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.1369, allocations: 0.7555 MB / 429 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.137, allocations: 7.938 kB / 429 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.1371, allocations: 23.72 kB / 429 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.1373, allocations: 27.8 kB / 429 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005613/0.1378, allocations: 159.6 kB / 429.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.138, allocations: 147.6 kB / 429.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.1382, allocations: 41.52 kB / 429.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.1383, allocations: 67.72 kB / 429.4 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.1384, allocations: 59.64 kB / 429.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/0.1385, allocations: 12 kB / 429.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001253/0.1386, allocations: 63.94 kB / 429.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.414e-05/0.1387, allocations: 39.91 kB / 429.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.314e-05/0.1388, allocations: 71.48 kB / 429.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003003/0.1391, allocations: 211.1 kB / 429.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1391, allocations: 0 / 429.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1391, allocations: 0 / 429.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1391, allocations: 0 / 429.9 MB, free: 1.223 MB / 350.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.0007872/0.1399, allocations: 474.7 kB / 430.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1399, allocations: 16.03 kB / 430.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.01e-05/0.14, allocations: 46.67 kB / 430.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.1401, allocations: 28.78 kB / 430.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.1405, allocations: 252.1 kB / 430.7 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.1405, allocations: 8.562 kB / 430.7 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.1405, allocations: 11.94 kB / 430.7 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2544/0.3949, allocations: 327.4 kB / 431 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.3949, allocations: 0 / 431 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.22e-05/0.395, allocations: 7.562 kB / 431 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.395, allocations: 3.344 kB / 431 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003263/0.3953, allocations: 77.62 kB / 431.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005189/0.3958, allocations: 344.7 kB / 431.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005299/0.3964, allocations: 260.4 kB / 431.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/0.3966, allocations: 89.92 kB / 431.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005668/0.3971, allocations: 0.5856 MB / 432.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.3972, allocations: 36.34 kB / 432.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.512e-06/0.3972, allocations: 0 / 432.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006905/0.3978, allocations: 248.7 kB / 432.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.739e-05/0.3979, allocations: 122.1 kB / 432.8 MB, free: 9.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001789/0.3981, allocations: 194.9 kB / 432.9 MB, free: 9.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.3981, allocations: 29.8 kB / 433 MB, free: 9.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.205e-05/0.3982, allocations: 105.5 kB / 433.1 MB, free: 9.641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.665e-05/0.3982, allocations: 16.78 kB / 433.1 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.028e-05/0.3983, allocations: 46.45 kB / 433.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.9e-05/0.3983, allocations: 328 kB / 433.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.117e-05/0.3984, allocations: 38.95 kB / 433.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.3986, allocations: 165.3 kB / 433.7 MB, free: 9.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.3988, allocations: 206.9 kB / 433.9 MB, free: 9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3988, allocations: 0.5 kB / 433.9 MB, free: 9 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00029/0.399, allocations: 218.7 kB / 434.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.3991, allocations: 4.406 kB / 434.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3991, allocations: 4.797 kB / 434.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.3991, allocations: 8.375 kB / 434.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.3992, allocations: 45.73 kB / 434.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.3993, allocations: 10.16 kB / 434.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.3994, allocations: 18.84 kB / 434.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.3994, allocations: 17.11 kB / 434.2 MB, free: 8.953 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.0001673/0.3996, allocations: 144.7 kB / 434.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003581/0.3999, allocations: 165 kB / 434.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003959/0.4003, allocations: 183.4 kB / 434.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.4003, allocations: 2.156 kB / 434.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4003, allocations: 4.625 kB / 434.7 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.4003, allocations: 4.031 kB / 434.7 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.4005, allocations: 229.8 kB / 434.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4005, allocations: 3.25 kB / 434.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.4007, allocations: 36.94 kB / 434.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.4007, allocations: 1.219 kB / 434.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.4007, allocations: 4.688 kB / 434.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.4007, allocations: 1.125 kB / 434.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4007, allocations: 2.75 kB / 435 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003673/0.4011, allocations: 287.9 kB / 435.2 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.725e-05/0.4012, allocations: 121.6 kB / 435.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.338e-05/0.4012, allocations: 9.5 kB / 435.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.4013, allocations: 12.22 kB / 435.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.126e-05/0.4013, allocations: 4.75 kB / 435.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.4014, allocations: 7.625 kB / 435.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001055/0.4015, allocations: 150.9 kB / 435.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4015, allocations: 1.188 kB / 435.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003218/0.4018, allocations: 30.89 kB / 435.6 MB, free: 8.203 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.0008948/0.4027, allocations: 0.9185 MB / 436.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000345/0.403, allocations: 141.1 kB / 436.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.403, allocations: 6.125 kB / 436.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.877e-05/0.4031, allocations: 12.69 kB / 436.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006293/0.4037, allocations: 136.3 kB / 436.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.406, allocations: 2.163 MB / 438.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.4062, allocations: 0.7336 MB / 439.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.304e-05/0.4063, allocations: 16.98 kB / 439.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.504e-05/0.4064, allocations: 46.27 kB / 439.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4064, allocations: 1.156 kB / 439.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03043/0.4368, allocations: 4.321 MB / 444.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.252/8.689, allocations: 4.781 kB / 444.1 MB, free: 4.512 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.432108503009658]