Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_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.0007829/0.0007831, allocations: 96.86 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 176.2 kB / 16.58 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.646/1.646, allocations: 205.4 MB / 222.7 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.366/0.366, allocations: 43.53 MB / 314.6 MB, free: 8.887 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006069/0.000607, allocations: 16 kB / 384 MB, free: 7.938 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1227, allocations: 58.85 MB / 442.9 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001741/0.1245, allocations: 1.307 MB / 444.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007944/0.1253, allocations: 0.4922 MB / 444.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.143e-05/0.1254, allocations: 0 / 444.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.618e-05/0.1255, allocations: 7.922 kB / 444.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.638e-05/0.1256, allocations: 11.94 kB / 444.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001681/0.1258, allocations: 27.91 kB / 444.7 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.1259, allocations: 79.7 kB / 444.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.126, allocations: 28.48 kB / 444.8 MB, free: 11.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.964e-05/0.1261, allocations: 23.86 kB / 444.8 MB, free: 10.99 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.353e-05/0.1261, allocations: 27.84 kB / 444.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.1261, allocations: 0 / 444.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.032e-05/0.1262, allocations: 4 kB / 444.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.104e-05/0.1262, allocations: 11.98 kB / 444.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.072e-05/0.1262, allocations: 41.58 kB / 444.9 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.301e-05/0.1263, allocations: 47.84 kB / 445 MB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1263, allocations: 0 / 445 MB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1263, allocations: 0 / 445 MB, free: 10.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.1264, allocations: 4 kB / 445 MB, free: 10.85 MB / 382.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.0005207/0.1269, allocations: 383 kB / 445.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1269, allocations: 8.031 kB / 445.4 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.476e-05/0.127, allocations: 38.56 kB / 445.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.719e-05/0.127, allocations: 11.86 kB / 445.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002156/0.1272, allocations: 190.9 kB / 445.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.1273, allocations: 0 / 445.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.1273, allocations: 16 kB / 445.6 MB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.1275, allocations: 73.61 kB / 445.7 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1275, allocations: 4 kB / 445.7 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.1275, allocations: 0 / 445.7 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1275, allocations: 7.953 kB / 445.7 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.13e-05/0.1276, allocations: 43.91 kB / 445.7 MB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005418/0.1282, allocations: 360.6 kB / 446.1 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.376e-05/0.1283, allocations: 42.56 kB / 446.1 MB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.562e-05/0.1283, allocations: 16.89 kB / 446.1 MB, free: 9.512 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.357e-06/0.1283, allocations: 4.047 kB / 446.1 MB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001498/0.1285, allocations: 67.38 kB / 446.2 MB, free: 9.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.1285, allocations: 4 kB / 446.2 MB, free: 9.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002157/0.1287, allocations: 85.53 kB / 446.3 MB, free: 9.336 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.1288, allocations: 51.41 kB / 446.3 MB, free: 9.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.1289, allocations: 137.9 kB / 446.5 MB, free: 9.129 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.1289, allocations: 29.7 kB / 446.5 MB, free: 9.094 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.623e-05/0.129, allocations: 100 kB / 446.6 MB, free: 8.992 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.129, allocations: 19.8 kB / 446.6 MB, free: 8.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.129, allocations: 4 kB / 446.6 MB, free: 8.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1291, allocations: 326.8 kB / 447 MB, free: 8.641 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.934e-05/0.1292, allocations: 15.98 kB / 447 MB, free: 8.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.708e-05/0.1293, allocations: 46.44 kB / 447 MB, free: 8.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.993e-05/0.1293, allocations: 19.92 kB / 447 MB, free: 8.551 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1293, allocations: 0 / 447 MB, free: 8.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001335/0.1295, allocations: 89.53 kB / 447.1 MB, free: 8.457 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.1295, allocations: 11.44 kB / 447.1 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1295, allocations: 0 / 447.1 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1295, allocations: 0 / 447.1 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.386e-05/0.1296, allocations: 8 kB / 447.1 MB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.1296, allocations: 0 / 447.1 MB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.253e-05/0.1297, allocations: 19.92 kB / 447.2 MB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.565e-06/0.1297, allocations: 4 kB / 447.2 MB, free: 8.418 MB / 382.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.64e-05/0.1298, allocations: 129.8 kB / 447.3 MB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.1298, allocations: 7.906 kB / 447.3 MB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.034e-05/0.1298, allocations: 8.719 kB / 447.3 MB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1299, allocations: 4 kB / 447.3 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1299, allocations: 3.984 kB / 447.3 MB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1299, allocations: 0 / 447.3 MB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003237/0.1302, allocations: 346.8 kB / 447.7 MB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1302, allocations: 0 / 447.7 MB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.891e-05/0.1303, allocations: 7.938 kB / 447.7 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1303, allocations: 4 kB / 447.7 MB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.1303, allocations: 4 kB / 447.7 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1303, allocations: 0 / 447.7 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1303, allocations: 0 / 447.7 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002055/0.1305, allocations: 191.5 kB / 447.9 MB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/0.1306, allocations: 85.05 kB / 447.9 MB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.1306, allocations: 4 kB / 447.9 MB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.809e-05/0.1307, allocations: 16.05 kB / 448 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.1308, allocations: 7.984 kB / 448 MB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.1308, allocations: 4 kB / 448 MB, free: 7.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.083e-05/0.1308, allocations: 107.2 kB / 448.1 MB, free: 7.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1309, allocations: 0 / 448.1 MB, free: 7.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.1311, allocations: 16 kB / 448.1 MB, free: 7.395 MB / 382.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.0005342/0.1316, allocations: 0.724 MB / 448.8 MB, free: 6.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001315/0.1318, allocations: 47.92 kB / 448.9 MB, free: 6.594 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.1318, allocations: 0 / 448.9 MB, free: 6.594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.034e-05/0.1318, allocations: 19.94 kB / 448.9 MB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.1322, allocations: 20.11 kB / 448.9 MB, free: 6.555 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.1332, allocations: 0.6434 MB / 449.5 MB, free: 5.859 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.1335, allocations: 0.6965 MB / 450.2 MB, free: 5.137 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.105e-05/0.1336, allocations: 4.438 kB / 450.2 MB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.315e-05/0.1337, allocations: 31.36 kB / 450.3 MB, free: 5.102 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1337, allocations: 4 kB / 450.3 MB, free: 5.098 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01323/0.1469, allocations: 1.918 MB / 452.2 MB, free: 3.203 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.1471, allocations: 179.5 kB / 452.4 MB, free: 2.961 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.694/1.842, allocations: 0 / 452.4 MB, free: 2.961 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat