Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001218/0.001219, allocations: 93.8 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 203.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2321/0.2321, allocations: 45.92 MB / 344 MB, free: 12.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002713/0.0002714, allocations: 8 kB / 418.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1337, allocations: 63.46 MB / 481.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002057/0.1358, allocations: 1.326 MB / 482.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009946/0.1368, allocations: 0.5342 MB / 483.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.582e-05/0.1369, allocations: 3.938 kB / 483.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.127e-05/0.1369, allocations: 7.922 kB / 483.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.1371, allocations: 15.92 kB / 483.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003412/0.1374, allocations: 75.33 kB / 483.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001655/0.1376, allocations: 71.8 kB / 483.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.1377, allocations: 23.98 kB / 483.6 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.016e-05/0.1378, allocations: 39.84 kB / 483.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.378e-05/0.1379, allocations: 31.83 kB / 483.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.1379, allocations: 4 kB / 483.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.431e-05/0.1379, allocations: 4 kB / 483.6 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.136e-05/0.138, allocations: 7.938 kB / 483.7 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.647e-05/0.138, allocations: 45.62 kB / 483.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001041/0.1381, allocations: 56.11 kB / 483.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.1381, allocations: 0 / 483.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1382, allocations: 0 / 483.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.1382, allocations: 0 / 483.8 MB, free: 3.039 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006781/0.1388, allocations: 407 kB / 484.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.1389, allocations: 8.031 kB / 484.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.215e-05/0.139, allocations: 38.56 kB / 484.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.408e-05/0.139, allocations: 7.906 kB / 484.2 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.1393, allocations: 210.8 kB / 484.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.1393, allocations: 8 kB / 484.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.1393, allocations: 4 kB / 484.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002819/0.1396, allocations: 105.6 kB / 484.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.1396, allocations: 7.984 kB / 484.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.1396, allocations: 8 kB / 484.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.1396, allocations: 0 / 484.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.1398, allocations: 55.97 kB / 484.6 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007458/0.1406, allocations: 400.5 kB / 485 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.141, allocations: 122.5 kB / 485.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.141, allocations: 0 / 485.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003028/0.1413, allocations: 111.4 kB / 485.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.1413, allocations: 4 kB / 485.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.000509/0.1418, allocations: 157.5 kB / 485.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.1419, allocations: 55.34 kB / 485.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.142, allocations: 146.4 kB / 485.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.142, allocations: 33.7 kB / 485.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.071e-05/0.1421, allocations: 104.2 kB / 485.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.272e-05/0.1422, allocations: 11.81 kB / 485.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/0.1422, allocations: 4 kB / 485.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1423, allocations: 322.8 kB / 486 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.1424, allocations: 39.97 kB / 486.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.1426, allocations: 53.64 kB / 486.1 MB, free: 448 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001272/0.1427, allocations: 43.97 kB / 486.2 MB, free: 404 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1427, allocations: 0 / 486.2 MB, free: 404 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002961/0.143, allocations: 129.5 kB / 486.3 MB, free: 268 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.1431, allocations: 7.953 kB / 486.3 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.1431, allocations: 3.938 kB / 486.3 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1431, allocations: 0 / 486.3 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1432, allocations: 19.98 kB / 486.3 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.1432, allocations: 0 / 486.3 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.1433, allocations: 31.97 kB / 486.4 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.1433, allocations: 0 / 486.4 MB, free: 204 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 0.0001155/0.1435, allocations: 120.7 kB / 486.5 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.1435, allocations: 11.91 kB / 486.5 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.837e-05/0.1435, allocations: 16.66 kB / 486.5 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1435, allocations: 0 / 486.5 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.1435, allocations: 4 kB / 486.5 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.1436, allocations: 4 kB / 486.5 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000569/0.1441, allocations: 390.5 kB / 486.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1441, allocations: 3.953 kB / 486.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.208e-05/0.1442, allocations: 19.98 kB / 486.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1443, allocations: 0 / 486.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.1443, allocations: 8 kB / 486.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1443, allocations: 0 / 486.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1443, allocations: 0 / 486.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004994/0.1448, allocations: 263.6 kB / 487.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/0.1449, allocations: 92.91 kB / 487.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.1449, allocations: 4.062 kB / 487.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.1451, allocations: 27.91 kB / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.312e-05/0.1451, allocations: 15.98 kB / 487.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.1451, allocations: 0 / 487.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.651e-05/0.1452, allocations: 119.3 kB / 487.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1452, allocations: 0 / 487.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002467/0.1455, allocations: 20 kB / 487.5 MB, free: 15.01 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007789/0.1463, allocations: 0.787 MB / 488.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002953/0.1466, allocations: 92.02 kB / 488.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.1466, allocations: 0 / 488.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.1468, allocations: 47.91 kB / 488.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.147, allocations: 16.05 kB / 488.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.1485, allocations: 0.87 MB / 489.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.1488, allocations: 0.6965 MB / 490 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.351e-05/0.1489, allocations: 16.55 kB / 490 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.57e-05/0.1489, allocations: 31.42 kB / 490 MB, free: 12.35 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1489, allocations: 0 / 490 MB, free: 12.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01332/0.1623, allocations: 2.203 MB / 492.2 MB, free: 10.26 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.1625, allocations: 172.4 kB / 492.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.017, allocations: 0 / 492.4 MB, free: 10.02 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat