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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001339/0.001339, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001245/0.001245, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.00196, allocations: 57.47 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.123, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.003118/0.1261, allocations: 1.464 MB / 359.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002257/0.1264, allocations: 39.84 kB / 359.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.687e-05/0.1265, allocations: 0 / 359.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.45e-05/0.1266, allocations: 7.922 kB / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.157e-05/0.1266, allocations: 4 kB / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003045/0.1269, allocations: 23.91 kB / 359.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001/0.127, allocations: 35.92 kB / 359.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.1271, allocations: 11.98 kB / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.892e-05/0.1272, allocations: 15.94 kB / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.079e-05/0.1273, allocations: 23.91 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.1273, allocations: 7.984 kB / 359.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.486e-05/0.1273, allocations: 4 kB / 359.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.529e-05/0.1274, allocations: 7.938 kB / 359.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.165e-05/0.1274, allocations: 19.92 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.1275, allocations: 35.89 kB / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1276, allocations: 0 / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.929e-06/0.1276, allocations: 0 / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.1276, allocations: 3.938 kB / 359.3 MB, free: 12.28 MB / 302.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.0006167/0.1282, allocations: 363.6 kB / 359.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.1283, allocations: 8.031 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.613e-05/0.1283, allocations: 34.75 kB / 359.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.184e-05/0.1283, allocations: 0.9375 kB / 359.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/0.1286, allocations: 188.2 kB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.1286, allocations: 384 / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.1287, allocations: 4.375 kB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006475/0.1293, allocations: 159.7 kB / 360 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.1293, allocations: 7.875 kB / 360 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.1294, allocations: 4 kB / 360 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1294, allocations: 0 / 360 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002685/0.1296, allocations: 47.94 kB / 360.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000181/0.1298, allocations: 157.7 kB / 360.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003342/0.1302, allocations: 86.45 kB / 360.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.1303, allocations: 40.89 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.1304, allocations: 7.984 kB / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.1304, allocations: 34.56 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.1304, allocations: 0 / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005028/0.1309, allocations: 117.5 kB / 360.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.636e-05/0.131, allocations: 59.31 kB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.022e-05/0.1311, allocations: 105.8 kB / 360.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.1311, allocations: 25.7 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.197e-05/0.1311, allocations: 96.06 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.1312, allocations: 4 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3e-05/0.1312, allocations: 13.72 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1313, allocations: 314.8 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.749e-05/0.1314, allocations: 7.984 kB / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.442e-05/0.1314, allocations: 33.12 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.968e-05/0.1315, allocations: 39.38 kB / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1315, allocations: 0 / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.82e-05/0.1316, allocations: 61.62 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1316, allocations: 7.938 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.1316, allocations: 4.125 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.1316, allocations: 7.938 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.168e-05/0.1317, allocations: 8 kB / 361.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.1317, allocations: 3.984 kB / 361.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.307e-05/0.1317, allocations: 4 kB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.847e-06/0.1317, allocations: 0 / 361.3 MB, free: 10 MB / 302.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.567e-05/0.1318, allocations: 117.8 kB / 361.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003094/0.1321, allocations: 93.42 kB / 361.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.1322, allocations: 7.906 kB / 361.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1322, allocations: 7.984 kB / 361.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1322, allocations: 4 kB / 361.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1322, allocations: 0 / 361.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.1323, allocations: 157.7 kB / 361.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1323, allocations: 0 / 361.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.1324, allocations: 11.98 kB / 361.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.343e-06/0.1325, allocations: 7.938 kB / 361.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.1325, allocations: 0 / 361.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1325, allocations: 0 / 361.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1325, allocations: 3.938 kB / 361.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003226/0.1328, allocations: 121 kB / 361.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.1329, allocations: 84.98 kB / 361.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.1329, allocations: 3.938 kB / 361.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.843e-05/0.133, allocations: 11.98 kB / 361.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-06/0.133, allocations: 0 / 361.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/0.133, allocations: 3.984 kB / 361.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.428e-05/0.133, allocations: 87.22 kB / 362 MB, free: 9.184 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.133, allocations: 0 / 362 MB, free: 9.184 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000189/0.1332, allocations: 8 kB / 362 MB, free: 9.176 MB / 302.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.0007729/0.134, allocations: 0.6869 MB / 362.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002075/0.1342, allocations: 43.89 kB / 362.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1343, allocations: 0 / 362.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.072e-06/0.1343, allocations: 320 / 362.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.1347, allocations: 52.03 kB / 362.8 MB, free: 8.367 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.1358, allocations: 1.193 MB / 364 MB, free: 7.074 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.1361, allocations: 0.6846 MB / 364.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.164e-05/0.1362, allocations: 0 / 364.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.972e-05/0.1362, allocations: 19.42 kB / 364.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1362, allocations: 0 / 364.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01851/0.1547, allocations: 1.457 MB / 366.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.453/7.608, allocations: 19.55 kB / 366.2 MB, free: 4.973 MB / 302.1 MB (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.0004 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,ramp.y,periodicClock1.period,ramp.height