Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002399/0.002398, allocations: 188.8 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.248/2.248, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001174/0.001174, allocations: 94.81 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3021/0.3021, allocations: 43.57 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004921/0.0004922, allocations: 12 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1338, allocations: 58.85 MB / 490.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002436/0.1363, allocations: 1.296 MB / 491.6 MB, free: 7.941 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.1376, allocations: 0.4961 MB / 492.1 MB, free: 7.438 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.643e-05/0.1377, allocations: 0 / 492.1 MB, free: 7.438 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 3.088e-05/0.1377, allocations: 7.922 kB / 492.1 MB, free: 7.43 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.1379, allocations: 11.98 kB / 492.1 MB, free: 7.418 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.1381, allocations: 27.84 kB / 492.1 MB, free: 7.391 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.1383, allocations: 55.88 kB / 492.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.1384, allocations: 20.22 kB / 492.2 MB, free: 7.316 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.248e-05/0.1385, allocations: 19.92 kB / 492.2 MB, free: 7.297 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.489e-05/0.1386, allocations: 27.84 kB / 492.3 MB, free: 7.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.1386, allocations: 4 kB / 492.3 MB, free: 7.266 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.459e-05/0.1386, allocations: 0 / 492.3 MB, free: 7.266 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.355e-05/0.1387, allocations: 11.94 kB / 492.3 MB, free: 7.254 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.527e-05/0.1387, allocations: 37.64 kB / 492.3 MB, free: 7.211 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.1389, allocations: 52.11 kB / 492.4 MB, free: 7.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.676e-06/0.1389, allocations: 0 / 492.4 MB, free: 7.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1389, allocations: 0 / 492.4 MB, free: 7.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1389, allocations: 4 kB / 492.4 MB, free: 7.156 MB / 330.7 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.0006755/0.1396, allocations: 371.1 kB / 492.7 MB, free: 6.746 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.1397, allocations: 8.031 kB / 492.7 MB, free: 6.738 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.884e-05/0.1397, allocations: 42.55 kB / 492.8 MB, free: 6.688 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.284e-05/0.1398, allocations: 15.8 kB / 492.8 MB, free: 6.672 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.1401, allocations: 194.8 kB / 493 MB, free: 6.441 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.1401, allocations: 7.984 kB / 493 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.1401, allocations: 16 kB / 493 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.1403, allocations: 68.77 kB / 493.1 MB, free: 6.348 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1404, allocations: 0 / 493.1 MB, free: 6.348 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/0.1404, allocations: 4 kB / 493.1 MB, free: 6.344 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.1404, allocations: 4 kB / 493.1 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.1406, allocations: 31.92 kB / 493.1 MB, free: 6.309 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008253/0.1414, allocations: 368.5 kB / 493.5 MB, free: 5.898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.1416, allocations: 54.5 kB / 493.5 MB, free: 5.836 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.1416, allocations: 3.938 kB / 493.5 MB, free: 5.832 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002126/0.1418, allocations: 67.59 kB / 493.6 MB, free: 5.754 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 3.256e-06/0.1419, allocations: 4 kB / 493.6 MB, free: 5.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003042/0.1422, allocations: 81.53 kB / 493.7 MB, free: 5.664 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.1422, allocations: 55.39 kB / 493.7 MB, free: 5.598 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.1424, allocations: 140.7 kB / 493.9 MB, free: 5.453 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.1425, allocations: 29.7 kB / 493.9 MB, free: 5.418 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.818e-05/0.1426, allocations: 166.6 kB / 494.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.549e-05/0.1426, allocations: 19.75 kB / 494.1 MB, free: 5.234 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.733e-06/0.1426, allocations: 0 / 494.1 MB, free: 5.234 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1428, allocations: 318.8 kB / 494.4 MB, free: 4.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.377e-05/0.1429, allocations: 16 kB / 494.4 MB, free: 4.898 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.091e-05/0.143, allocations: 34.56 kB / 494.5 MB, free: 4.855 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.02e-05/0.143, allocations: 16.31 kB / 494.5 MB, free: 4.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.143, allocations: 4 kB / 494.5 MB, free: 4.836 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002204/0.1433, allocations: 81.56 kB / 494.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.1433, allocations: 12.06 kB / 494.6 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.1433, allocations: 0 / 494.6 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.1434, allocations: 0 / 494.6 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.1435, allocations: 19.92 kB / 494.6 MB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.1435, allocations: 0 / 494.6 MB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.1436, allocations: 15.84 kB / 494.6 MB, free: 4.703 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.1437, allocations: 0 / 494.6 MB, free: 4.703 MB / 330.7 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 0.000139/0.1438, allocations: 129.8 kB / 494.7 MB, free: 4.566 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.706e-05/0.1438, allocations: 11.86 kB / 494.7 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.599e-05/0.1439, allocations: 16.72 kB / 494.8 MB, free: 4.535 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1439, allocations: 0 / 494.8 MB, free: 4.535 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1439, allocations: 4 kB / 494.8 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.81e-06/0.1439, allocations: 0 / 494.8 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005343/0.1445, allocations: 342.5 kB / 495.1 MB, free: 4.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1445, allocations: 0 / 495.1 MB, free: 4.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.057e-05/0.1446, allocations: 4 kB / 495.1 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.1446, allocations: 3.984 kB / 495.1 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.1446, allocations: 8 kB / 495.1 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1447, allocations: 4 kB / 495.1 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1447, allocations: 0 / 495.1 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003278/0.145, allocations: 195.5 kB / 495.3 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.371e-05/0.1451, allocations: 89.03 kB / 495.4 MB, free: 3.809 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/0.1451, allocations: 3.938 kB / 495.4 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.1453, allocations: 7.984 kB / 495.4 MB, free: 3.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.025e-05/0.1454, allocations: 12.05 kB / 495.4 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.1454, allocations: 8 kB / 495.4 MB, free: 3.777 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001073/0.1455, allocations: 105.8 kB / 495.5 MB, free: 3.676 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1455, allocations: 0 / 495.5 MB, free: 3.676 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003376/0.1459, allocations: 15.91 kB / 495.5 MB, free: 3.66 MB / 330.7 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.00067/0.1466, allocations: 0.7202 MB / 496.3 MB, free: 2.914 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001974/0.1468, allocations: 51.97 kB / 496.3 MB, free: 2.863 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.1468, allocations: 4 kB / 496.3 MB, free: 2.859 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.583e-05/0.1469, allocations: 19.98 kB / 496.3 MB, free: 2.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.1473, allocations: 15.98 kB / 496.4 MB, free: 2.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.149, allocations: 0.9588 MB / 497.3 MB, free: 1.809 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.1494, allocations: 0.6965 MB / 498 MB, free: 1.086 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.103e-05/0.1495, allocations: 27.42 kB / 498 MB, free: 1.059 MB / 330.7 MB Notification: Performance of SimCode: time 1.252e-06/0.1495, allocations: 0 / 498 MB, free: 1.059 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.455/2.604, allocations: 1.566 MB / 499.6 MB, free: 15.49 MB / 346.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat