Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",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.001185/0.001185, allocations: 101.1 kB / 17 MB, free: 6.414 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.001262/0.001262, allocations: 187.9 kB / 17.89 MB, free: 5.945 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.359/1.359, allocations: 223.2 MB / 241.9 MB, free: 14.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2236/0.2236, allocations: 44.22 MB / 337.2 MB, free: 2.566 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003672/0.0003673, allocations: 8 kB / 409.7 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1366, allocations: 61.92 MB / 471.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001857/0.1385, allocations: 1.291 MB / 472.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007417/0.1392, allocations: 463.2 kB / 473.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.482e-05/0.1393, allocations: 0 / 473.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.306e-05/0.1394, allocations: 3.938 kB / 473.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.016e-05/0.1395, allocations: 11.91 kB / 473.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001693/0.1396, allocations: 31.92 kB / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.1398, allocations: 79.7 kB / 473.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.1399, allocations: 24.2 kB / 473.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.919e-05/0.1399, allocations: 19.88 kB / 473.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.803e-05/0.14, allocations: 27.84 kB / 473.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/0.14, allocations: 0 / 473.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.109e-05/0.1401, allocations: 4 kB / 473.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.611e-05/0.1401, allocations: 11.98 kB / 473.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.843e-05/0.1401, allocations: 41.64 kB / 473.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.353e-05/0.1402, allocations: 48.12 kB / 473.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1402, allocations: 0 / 473.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1403, allocations: 0 / 473.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.137e-06/0.1403, allocations: 0 / 473.7 MB, free: 11.54 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005194/0.1408, allocations: 371.1 kB / 474 MB, free: 11.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.1408, allocations: 8.031 kB / 474.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.926e-05/0.1409, allocations: 46.55 kB / 474.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.481e-05/0.1409, allocations: 15.78 kB / 474.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.1411, allocations: 190.9 kB / 474.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.1412, allocations: 4 kB / 474.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.1412, allocations: 11.95 kB / 474.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.1414, allocations: 72.2 kB / 474.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1414, allocations: 0 / 474.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.1414, allocations: 0 / 474.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.1414, allocations: 4 kB / 474.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.121e-05/0.1415, allocations: 43.86 kB / 474.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005746/0.1421, allocations: 360.5 kB / 474.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.839e-05/0.1422, allocations: 46.56 kB / 474.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.182e-05/0.1422, allocations: 20.89 kB / 474.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.1423, allocations: 3.984 kB / 474.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/0.1424, allocations: 63.44 kB / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.1424, allocations: 4 kB / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002175/0.1427, allocations: 89.47 kB / 475 MB, free: 10.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/0.1427, allocations: 59.33 kB / 475.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.1428, allocations: 144.2 kB / 475.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.1429, allocations: 29.7 kB / 475.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.012e-05/0.1429, allocations: 104.1 kB / 475.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.143, allocations: 15.81 kB / 475.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.97e-06/0.143, allocations: 0 / 475.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1431, allocations: 326.8 kB / 475.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.524e-05/0.1431, allocations: 12 kB / 475.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.185e-05/0.1432, allocations: 42.5 kB / 475.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.899e-05/0.1432, allocations: 20 kB / 475.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1433, allocations: 0 / 475.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001268/0.1434, allocations: 81.53 kB / 475.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.1434, allocations: 11.98 kB / 475.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1434, allocations: 0 / 475.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.1434, allocations: 0 / 475.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.407e-05/0.1435, allocations: 8 kB / 475.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.1435, allocations: 3.953 kB / 475.9 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.89e-05/0.1436, allocations: 23.95 kB / 475.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.1436, allocations: 4 kB / 475.9 MB, free: 9.105 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.fallingEdge.not_u,fallingEdge.not_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 9.842e-05/0.1437, allocations: 124.5 kB / 476 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.449e-05/0.1437, allocations: 8.094 kB / 476 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.043e-05/0.1438, allocations: 8.719 kB / 476 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1438, allocations: 7.938 kB / 476 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1438, allocations: 4 kB / 476 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1438, allocations: 3.953 kB / 476 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003086/0.1441, allocations: 342.6 kB / 476.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1441, allocations: 0 / 476.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.892e-05/0.1442, allocations: 11.92 kB / 476.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1442, allocations: 0 / 476.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.1442, allocations: 4 kB / 476.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1442, allocations: 3.953 kB / 476.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1442, allocations: 0 / 476.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001993/0.1444, allocations: 196 kB / 476.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.1445, allocations: 89.05 kB / 476.7 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.1445, allocations: 0 / 476.7 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.767e-05/0.1446, allocations: 11.98 kB / 476.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.801e-05/0.1446, allocations: 11.88 kB / 476.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.164e-06/0.1447, allocations: 8 kB / 476.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.465e-05/0.1447, allocations: 105 kB / 476.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1447, allocations: 0 / 476.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.145, allocations: 15.91 kB / 476.8 MB, free: 8.074 MB / 350.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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0004396/0.1454, allocations: 0.7242 MB / 477.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001292/0.1455, allocations: 47.91 kB / 477.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1456, allocations: 0 / 477.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.624e-05/0.1456, allocations: 16 kB / 477.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.146, allocations: 28.12 kB / 477.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009475/0.1469, allocations: 0.6209 MB / 478.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.1471, allocations: 0.7004 MB / 478.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.569e-05/0.1472, allocations: 12.38 kB / 479 MB, free: 5.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.126e-05/0.1472, allocations: 27.42 kB / 479 MB, free: 5.793 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1472, allocations: 0 / 479 MB, free: 5.793 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01278/0.16, allocations: 1.925 MB / 480.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.1603, allocations: 187.1 kB / 481.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/1.989, allocations: 112 / 481.1 MB, free: 3.742 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat