Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.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.TimeBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001816/0.001816, allocations: 114 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002201/0.002201, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 59.91 kB / 306.6 MB, free: 0.8633 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1217, allocations: 50.54 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp): time 0.003215/0.125, allocations: 1.553 MB / 358.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008563/0.1259, allocations: 434.9 kB / 359.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.952e-05/0.126, allocations: 0 / 359.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.406e-05/0.126, allocations: 4 kB / 359.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.084e-05/0.1261, allocations: 3.938 kB / 359.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000262/0.1264, allocations: 27.97 kB / 359.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.1265, allocations: 39.86 kB / 359.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1266, allocations: 12 kB / 359.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.835e-05/0.1267, allocations: 19.86 kB / 359.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.576e-05/0.1267, allocations: 15.92 kB / 359.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.1268, allocations: 4 kB / 359.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.092e-05/0.1268, allocations: 0 / 359.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.807e-05/0.1268, allocations: 4 kB / 359.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.437e-05/0.1268, allocations: 23.86 kB / 359.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.725e-05/0.1269, allocations: 31.89 kB / 359.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.127, allocations: 0 / 359.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.127, allocations: 4 kB / 359.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.127, allocations: 0 / 359.3 MB, free: 12.14 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.0004701/0.1274, allocations: 358.2 kB / 359.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.1275, allocations: 12.03 kB / 359.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.875e-05/0.1275, allocations: 34.75 kB / 359.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.1276, allocations: 4.938 kB / 359.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001779/0.1278, allocations: 172.3 kB / 359.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.1278, allocations: 4.312 kB / 359.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/0.1278, allocations: 12.38 kB / 359.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000447/0.1283, allocations: 135.4 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-06/0.1283, allocations: 0 / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.1283, allocations: 0 / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1283, allocations: 8 kB / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.1285, allocations: 39.95 kB / 360 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001537/0.1286, allocations: 161.6 kB / 360.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002757/0.1289, allocations: 82.48 kB / 360.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.938e-05/0.129, allocations: 32.89 kB / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.129, allocations: 0 / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.1291, allocations: 38.44 kB / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.1291, allocations: 0 / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003592/0.1294, allocations: 101.5 kB / 360.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.1295, allocations: 63.34 kB / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.972e-05/0.1296, allocations: 105.8 kB / 360.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.1296, allocations: 25.7 kB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.767e-05/0.1297, allocations: 84.14 kB / 360.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.556e-06/0.1297, allocations: 7.938 kB / 360.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/0.1297, allocations: 17.72 kB / 360.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1298, allocations: 318.8 kB / 361 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.16e-05/0.1298, allocations: 4 kB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.463e-05/0.1299, allocations: 27.62 kB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.085e-05/0.1299, allocations: 35.36 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1299, allocations: 0 / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.762e-05/0.13, allocations: 57.67 kB / 361.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.13, allocations: 8 kB / 361.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.13, allocations: 0 / 361.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.1301, allocations: 3.984 kB / 361.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.785e-05/0.1301, allocations: 19.92 kB / 361.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.1301, allocations: 4 kB / 361.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.1302, allocations: 0 / 361.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-06/0.1302, allocations: 4 kB / 361.2 MB, free: 9.938 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.815e-05/0.1303, allocations: 117.9 kB / 361.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001878/0.1305, allocations: 77.5 kB / 361.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.448e-05/0.1305, allocations: 11.91 kB / 361.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1305, allocations: 0 / 361.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1305, allocations: 0 / 361.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1305, allocations: 0 / 361.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.989e-05/0.1306, allocations: 157.7 kB / 361.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1306, allocations: 3.938 kB / 361.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-05/0.1307, allocations: 19.92 kB / 361.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.1307, allocations: 4 kB / 361.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.1307, allocations: 0 / 361.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1308, allocations: 0 / 361.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1308, allocations: 0 / 361.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.131, allocations: 101.1 kB / 361.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.131, allocations: 88.95 kB / 361.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.1311, allocations: 4 kB / 361.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.693e-05/0.1311, allocations: 7.984 kB / 361.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-06/0.1311, allocations: 0 / 361.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.1311, allocations: 0 / 361.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.903e-05/0.1312, allocations: 87.28 kB / 361.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.272e-06/0.1312, allocations: 3.938 kB / 361.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000183/0.1314, allocations: 7.938 kB / 361.9 MB, free: 9.148 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0004885/0.1319, allocations: 0.6397 MB / 362.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001539/0.132, allocations: 39.91 kB / 362.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1321, allocations: 0 / 362.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.61e-07/0.1321, allocations: 0 / 362.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.1324, allocations: 32.27 kB / 362.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.1335, allocations: 1.177 MB / 363.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.1337, allocations: 0.6807 MB / 364.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.058e-05/0.1338, allocations: 3.984 kB / 364.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.969e-05/0.1338, allocations: 15.44 kB / 364.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1338, allocations: 0 / 364.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01134/0.1452, allocations: 1.263 MB / 365.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/0.1454, allocations: 211 kB / 365.9 MB, free: 5.035 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.258, allocations: 0 / 365.9 MB, free: 5.035 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedRamp/TimeBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches