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.001855/0.001855, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.145/2.145, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001124/0.001124, allocations: 88.48 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5481/0.5481, allocations: 43.55 MB / 362.7 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000766/0.0007663, allocations: 16 kB / 431.5 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1335, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4886/0.6221, allocations: 86.12 MB / 0.5629 GB, free: 384 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.6224, allocations: 63.97 kB / 0.563 GB, free: 320 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007093/0.6296, allocations: 1.666 MB / 0.5646 GB, free: 14.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.6296, allocations: 0 / 0.5646 GB, free: 14.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.6297, allocations: 0 / 0.5646 GB, free: 14.66 MB / 394.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.0006608/0.6303, allocations: 401.1 kB / 0.565 GB, free: 14.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.6304, allocations: 8.031 kB / 0.565 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.164e-05/0.6305, allocations: 42.56 kB / 0.565 GB, free: 14.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.6305, allocations: 11.34 kB / 0.565 GB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.6308, allocations: 183 kB / 0.5652 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.6308, allocations: 8 kB / 0.5652 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.896e-05/0.6309, allocations: 4 kB / 0.5652 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002163/0.6311, allocations: 77.61 kB / 0.5653 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.6311, allocations: 0 / 0.5653 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.6312, allocations: 4 kB / 0.5653 GB, free: 13.85 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.547e-06/0.6312, allocations: 4.828 kB / 0.5653 GB, free: 13.85 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001391/0.6313, allocations: 36.95 kB / 0.5653 GB, free: 13.81 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008163/0.6322, allocations: 360.5 kB / 0.5657 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.6323, allocations: 46.56 kB / 0.5657 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.6324, allocations: 4.031 kB / 0.5657 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002124/0.6326, allocations: 75.44 kB / 0.5658 GB, free: 13.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 2.655e-06/0.6326, allocations: 0 / 0.5658 GB, free: 13.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003089/0.6329, allocations: 81.58 kB / 0.5659 GB, free: 13.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.633, allocations: 55.41 kB / 0.5659 GB, free: 13.11 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.6331, allocations: 133.5 kB / 0.5661 GB, free: 12.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.6332, allocations: 33.7 kB / 0.5661 GB, free: 12.94 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.356e-05/0.6333, allocations: 160 kB / 0.5663 GB, free: 12.78 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.702e-05/0.6334, allocations: 27.78 kB / 0.5663 GB, free: 12.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/0.6334, allocations: 0 / 0.5663 GB, free: 12.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.6335, allocations: 318.8 kB / 0.5666 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.236e-05/0.6336, allocations: 15.94 kB / 0.5666 GB, free: 12.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.965e-05/0.6337, allocations: 38.56 kB / 0.5666 GB, free: 12.37 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.771e-05/0.6338, allocations: 16 kB / 0.5667 GB, free: 12.36 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/0.6338, allocations: 0 / 0.5667 GB, free: 12.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000214/0.634, allocations: 85.31 kB / 0.5667 GB, free: 12.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.634, allocations: 7.953 kB / 0.5667 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.6341, allocations: 4 kB / 0.5667 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.6341, allocations: 0 / 0.5667 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.6342, allocations: 11.98 kB / 0.5668 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.6342, allocations: 5.188 kB / 0.5668 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.6344, allocations: 8.062 kB / 0.5668 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.6344, allocations: 8.5 kB / 0.5668 GB, free: 12.23 MB / 394.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,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$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.0001696/0.6346, allocations: 124.5 kB / 0.5669 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.6346, allocations: 7.906 kB / 0.5669 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.915e-05/0.6347, allocations: 16.67 kB / 0.5669 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.6347, allocations: 0 / 0.5669 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.6347, allocations: 0 / 0.5669 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.6347, allocations: 1.062 kB / 0.5669 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005387/0.6352, allocations: 354.4 kB / 0.5673 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.6353, allocations: 0 / 0.5673 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.16e-05/0.6354, allocations: 7.953 kB / 0.5673 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.6354, allocations: 0 / 0.5673 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.6354, allocations: 4.734 kB / 0.5673 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.6354, allocations: 0 / 0.5673 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.6354, allocations: 5.875 kB / 0.5673 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003186/0.6357, allocations: 190.6 kB / 0.5675 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.502e-05/0.6358, allocations: 81.05 kB / 0.5675 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.852e-05/0.6359, allocations: 11.89 kB / 0.5675 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.636, allocations: 11.98 kB / 0.5676 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.28e-05/0.6361, allocations: 7.984 kB / 0.5676 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.6361, allocations: 4.75 kB / 0.5676 GB, free: 11.33 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001121/0.6362, allocations: 99.27 kB / 0.5677 GB, free: 11.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6363, allocations: 0.5469 kB / 0.5677 GB, free: 11.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003251/0.6366, allocations: 20 kB / 0.5677 GB, free: 11.21 MB / 394.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 (fallingEdge.y,$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.0007079/0.6373, allocations: 0.7164 MB / 0.5684 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002073/0.6375, allocations: 47.92 kB / 0.5684 GB, free: 10.42 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.6376, allocations: 0.7344 kB / 0.5684 GB, free: 10.42 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.62e-05/0.6377, allocations: 23.92 kB / 0.5685 GB, free: 10.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.638, allocations: 28.06 kB / 0.5685 GB, free: 10.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.6399, allocations: 0.9544 MB / 0.5694 GB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003863/0.6404, allocations: 0.7004 MB / 0.5701 GB, free: 8.633 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.133e-05/0.6405, allocations: 31.42 kB / 0.5701 GB, free: 8.605 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6405, allocations: 0 / 0.5701 GB, free: 8.605 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.469/3.109, allocations: 1.564 MB / 0.5717 GB, free: 7.051 MB / 394.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