Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.TickBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001082/0.001081, allocations: 91.73 kB / 16.3 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 185.4 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.559/1.559, allocations: 223.2 MB / 241.1 MB, free: 5.473 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003142/0.0003142, allocations: 6.938 kB / 300.8 MB, free: 5.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1377, allocations: 50.42 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002527/0.1403, allocations: 1.166 MB / 352.4 MB, free: 10.49 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002253/0.1405, allocations: 39.84 kB / 352.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.58e-05/0.1406, allocations: 0 / 352.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.596e-05/0.1406, allocations: 0 / 352.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.646e-05/0.1407, allocations: 7.938 kB / 352.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003808/0.1411, allocations: 19.97 kB / 352.5 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.553e-05/0.1412, allocations: 23.97 kB / 352.5 MB, free: 10.4 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.1413, allocations: 15.92 kB / 352.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.42e-05/0.1414, allocations: 11.94 kB / 352.5 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.913e-05/0.1415, allocations: 15.92 kB / 352.5 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.1415, allocations: 4 kB / 352.5 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.246e-05/0.1415, allocations: 0 / 352.5 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.055e-05/0.1415, allocations: 7.969 kB / 352.5 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.535e-05/0.1416, allocations: 33.7 kB / 352.6 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.977e-05/0.1417, allocations: 23.83 kB / 352.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1417, allocations: 0 / 352.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1417, allocations: 0 / 352.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1417, allocations: 0 / 352.6 MB, free: 10.29 MB / 286.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.0006187/0.1423, allocations: 351.3 kB / 352.9 MB, free: 9.895 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.492e-05/0.1424, allocations: 12.03 kB / 353 MB, free: 9.883 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.29e-05/0.1425, allocations: 34.56 kB / 353 MB, free: 9.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.1425, allocations: 7.859 kB / 353 MB, free: 9.832 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.1427, allocations: 175 kB / 353.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.1428, allocations: 4 kB / 353.2 MB, free: 9.617 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.537e-05/0.1428, allocations: 7.984 kB / 353.2 MB, free: 9.609 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006054/0.1434, allocations: 167.2 kB / 353.3 MB, free: 9.434 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.1434, allocations: 0 / 353.3 MB, free: 9.434 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.1434, allocations: 0 / 353.3 MB, free: 9.434 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.1434, allocations: 3.953 kB / 353.3 MB, free: 9.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.1437, allocations: 51.94 kB / 353.4 MB, free: 9.379 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001585/0.1439, allocations: 165.6 kB / 353.6 MB, free: 9.168 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003445/0.1442, allocations: 94.44 kB / 353.7 MB, free: 9.066 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.1442, allocations: 4 kB / 353.7 MB, free: 9.062 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.1443, allocations: 30.56 kB / 353.7 MB, free: 9.023 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.1443, allocations: 0 / 353.7 MB, free: 9.023 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004925/0.1448, allocations: 121.7 kB / 353.8 MB, free: 8.898 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.1448, allocations: 59.34 kB / 353.9 MB, free: 8.828 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.905e-05/0.1449, allocations: 117.7 kB / 354 MB, free: 8.703 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.145, allocations: 25.7 kB / 354 MB, free: 8.672 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.758e-05/0.145, allocations: 88.14 kB / 354.1 MB, free: 8.582 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.397e-05/0.1451, allocations: 7.984 kB / 354.1 MB, free: 8.574 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-06/0.1451, allocations: 0 / 354.1 MB, free: 8.574 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1452, allocations: 314.8 kB / 354.4 MB, free: 8.258 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.464e-05/0.1452, allocations: 4 kB / 354.4 MB, free: 8.254 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.322e-05/0.1453, allocations: 31.42 kB / 354.4 MB, free: 8.211 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.268e-05/0.1453, allocations: 8 kB / 354.4 MB, free: 8.203 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1453, allocations: 4 kB / 354.4 MB, free: 8.199 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.627e-05/0.1454, allocations: 61.56 kB / 354.5 MB, free: 8.133 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1454, allocations: 8 kB / 354.5 MB, free: 8.125 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1454, allocations: 0 / 354.5 MB, free: 8.125 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.1454, allocations: 0 / 354.5 MB, free: 8.125 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.429e-05/0.1455, allocations: 8 kB / 354.5 MB, free: 8.117 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.1455, allocations: 0 / 354.5 MB, free: 8.117 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.375e-05/0.1456, allocations: 12.03 kB / 354.5 MB, free: 8.105 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.1456, allocations: 3.953 kB / 354.5 MB, free: 8.102 MB / 286.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 (ramp.counter,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.21e-05/0.1457, allocations: 113.8 kB / 354.7 MB, free: 7.98 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002845/0.146, allocations: 93.56 kB / 354.7 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.146, allocations: 7.906 kB / 354.8 MB, free: 7.867 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.146, allocations: 4 kB / 354.8 MB, free: 7.863 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.146, allocations: 0 / 354.8 MB, free: 7.863 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.146, allocations: 0 / 354.8 MB, free: 7.863 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.1461, allocations: 161.6 kB / 354.9 MB, free: 7.656 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1462, allocations: 4 kB / 354.9 MB, free: 7.652 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.848e-05/0.1463, allocations: 19.97 kB / 354.9 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1463, allocations: 0 / 354.9 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.1463, allocations: 240 / 354.9 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1463, allocations: 3.938 kB / 354.9 MB, free: 7.629 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1463, allocations: 0 / 354.9 MB, free: 7.629 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003118/0.1466, allocations: 128.9 kB / 355.1 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.712e-05/0.1467, allocations: 77.11 kB / 355.1 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.1467, allocations: 8 kB / 355.1 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.84e-05/0.1468, allocations: 15.92 kB / 355.2 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-06/0.1468, allocations: 0 / 355.2 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.1468, allocations: 128 / 355.2 MB, free: 7.367 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.393e-05/0.1469, allocations: 91.56 kB / 355.3 MB, free: 7.277 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1469, allocations: 0 / 355.3 MB, free: 7.277 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001953/0.1471, allocations: 8 kB / 355.3 MB, free: 7.27 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008167/0.1479, allocations: 0.6982 MB / 356 MB, free: 6.543 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002528/0.1481, allocations: 39.91 kB / 356 MB, free: 6.504 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1482, allocations: 0 / 356 MB, free: 6.504 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.1482, allocations: 0 / 356 MB, free: 6.504 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.1486, allocations: 47.98 kB / 356 MB, free: 6.457 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.1498, allocations: 0.8526 MB / 356.9 MB, free: 5.543 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.1502, allocations: 0.6848 MB / 357.6 MB, free: 4.832 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.016e-05/0.1502, allocations: 3.984 kB / 357.6 MB, free: 4.828 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.505e-05/0.1503, allocations: 11.44 kB / 357.6 MB, free: 4.816 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1503, allocations: 4 kB / 357.6 MB, free: 4.812 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01492/0.1652, allocations: 1.247 MB / 358.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002682/0.1656, allocations: 200.4 kB / 359 MB, free: 3.477 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.89/2.056, allocations: 0 / 359 MB, free: 3.477 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat does not exist to compare? outputFormat=mat