Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001394/0.001394, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.001459, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 230.4 MB / 254 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 55.91 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1074, allocations: 53.39 MB / 426.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.00261/0.11, allocations: 1.474 MB / 427.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001972/0.1102, allocations: 31.91 kB / 427.9 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.255e-05/0.1102, allocations: 4 kB / 427.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.962e-05/0.1103, allocations: 3.938 kB / 427.9 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.602e-05/0.1103, allocations: 3.938 kB / 427.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.1106, allocations: 31.95 kB / 427.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.1107, allocations: 31.92 kB / 428 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.766e-05/0.1108, allocations: 7.984 kB / 428 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.105e-05/0.1108, allocations: 19.94 kB / 428 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.48e-05/0.1109, allocations: 15.92 kB / 428 MB, free: 3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.302e-05/0.1109, allocations: 7.938 kB / 428 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.208e-05/0.1109, allocations: 4 kB / 428 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.511e-05/0.1109, allocations: 11.97 kB / 428 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.282e-05/0.111, allocations: 15.88 kB / 428 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.1111, allocations: 43.75 kB / 428.1 MB, free: 2.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1111, allocations: 4 kB / 428.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1111, allocations: 0 / 428.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.1111, allocations: 0 / 428.1 MB, free: 2.914 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005758/0.1117, allocations: 355.4 kB / 428.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.1117, allocations: 12.03 kB / 428.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.882e-05/0.1118, allocations: 34.75 kB / 428.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.711e-05/0.1118, allocations: 4.891 kB / 428.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002191/0.112, allocations: 188.2 kB / 428.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.112, allocations: 4.375 kB / 428.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.1121, allocations: 12.36 kB / 428.7 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006155/0.1127, allocations: 155.7 kB / 428.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1127, allocations: 7.938 kB / 428.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.1127, allocations: 0 / 428.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1127, allocations: 0 / 428.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000265/0.113, allocations: 47.94 kB / 428.9 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001616/0.1131, allocations: 161.7 kB / 429 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.1135, allocations: 90.47 kB / 429.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.1136, allocations: 32.88 kB / 429.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.1137, allocations: 0 / 429.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.1137, allocations: 34.56 kB / 429.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.1137, allocations: 0 / 429.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004971/0.1142, allocations: 113.5 kB / 429.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.1143, allocations: 67.33 kB / 429.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.731e-05/0.1143, allocations: 101.9 kB / 429.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.1144, allocations: 25.7 kB / 429.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.684e-05/0.1144, allocations: 88.12 kB / 429.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.978e-05/0.1144, allocations: 7.953 kB / 429.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.931e-05/0.1145, allocations: 13.72 kB / 429.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1146, allocations: 314.8 kB / 429.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.787e-05/0.1146, allocations: 11.98 kB / 429.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.491e-05/0.1146, allocations: 35.38 kB / 430 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.698e-05/0.1147, allocations: 35.38 kB / 430 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1147, allocations: 0 / 430 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.747e-05/0.1148, allocations: 61.62 kB / 430.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.1148, allocations: 7.938 kB / 430.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1148, allocations: 0 / 430.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1148, allocations: 4 kB / 430.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.355e-05/0.1149, allocations: 15.86 kB / 430.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.1149, allocations: 4 kB / 430.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.815e-05/0.1149, allocations: 0 / 430.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.1149, allocations: 8 kB / 430.1 MB, free: 0.6367 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.ramp.counter,ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.638e-05/0.115, allocations: 114 kB / 430.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003036/0.1153, allocations: 89.53 kB / 430.3 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.252e-05/0.1153, allocations: 11.89 kB / 430.3 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1153, allocations: 0 / 430.3 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1153, allocations: 0 / 430.3 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.1153, allocations: 240 / 430.3 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.1154, allocations: 157.7 kB / 430.5 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1154, allocations: 7.938 kB / 430.5 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.802e-05/0.1155, allocations: 11.98 kB / 430.5 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.1156, allocations: 7.922 kB / 430.5 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.1156, allocations: 8 kB / 430.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1156, allocations: 128 / 430.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1156, allocations: 8 kB / 430.5 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000325/0.1159, allocations: 109 kB / 430.6 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.837e-05/0.116, allocations: 81.11 kB / 430.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.116, allocations: 11.92 kB / 430.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.825e-05/0.1161, allocations: 4 kB / 430.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.661e-06/0.1161, allocations: 3.984 kB / 430.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.1161, allocations: 8 kB / 430.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.9e-05/0.1161, allocations: 83.28 kB / 430.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1161, allocations: 0 / 430.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001815/0.1163, allocations: 7.938 kB / 430.8 MB, free: 15.81 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0008467/0.1172, allocations: 0.6865 MB / 431.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002235/0.1174, allocations: 51.95 kB / 431.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1174, allocations: 0 / 431.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.1174, allocations: 4 kB / 431.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.1178, allocations: 32 kB / 431.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.1189, allocations: 1.193 MB / 432.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.1192, allocations: 0.6846 MB / 433.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.273e-05/0.1192, allocations: 4 kB / 433.5 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.283e-05/0.1193, allocations: 11.44 kB / 433.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1193, allocations: 3.938 kB / 433.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.1422, allocations: 1.517 MB / 435 MB, free: 11.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.651, allocations: 3.984 kB / 435 MB, free: 11.58 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,ramp.y,periodicClock1.period,ramp.height [Calling sys.exit(0), Time elapsed: 10.245799319003709]