Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator",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.001505/0.001505, allocations: 186.2 kB / 16.4 MB, free: 5.75 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.217/2.217, 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.001239/0.001239, allocations: 93.88 kB / 270.9 MB, free: 8.371 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.5238/0.5238, allocations: 43.55 MB / 362.7 MB, free: 52.23 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004807/0.0004806, allocations: 12 kB / 431.5 MB, free: 6.094 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1385, allocations: 58.84 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4837/0.6223, allocations: 84.89 MB / 0.5617 GB, free: 1.805 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.6226, allocations: 59.98 kB / 0.5618 GB, free: 1.746 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003241/0.6259, allocations: 0.9854 MB / 0.5627 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6259, allocations: 0.8125 kB / 0.5627 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.626, allocations: 4 kB / 0.5627 GB, free: 0.7656 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003444/0.6263, allocations: 349.9 kB / 0.5631 GB, free: 392 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.6264, allocations: 8.781 kB / 0.5631 GB, free: 384 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.228e-05/0.6264, allocations: 39.12 kB / 0.5631 GB, free: 336 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.303e-05/0.6265, allocations: 3.438 kB / 0.5631 GB, free: 336 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.6266, allocations: 184.5 kB / 0.5633 GB, free: 112 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.6267, allocations: 0 / 0.5633 GB, free: 112 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.6267, allocations: 11.98 kB / 0.5633 GB, free: 100 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/0.6268, allocations: 50.55 kB / 0.5634 GB, free: 44 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.6269, allocations: 4 kB / 0.5634 GB, free: 40 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.6269, allocations: 3.938 kB / 0.5634 GB, free: 36 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.6269, allocations: 0 / 0.5634 GB, free: 36 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.661e-05/0.627, allocations: 20.73 kB / 0.5634 GB, free: 20 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006656/0.6277, allocations: 296.7 kB / 0.5637 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.604e-05/0.6277, allocations: 22.58 kB / 0.5637 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.6278, allocations: 0 / 0.5637 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000144/0.6279, allocations: 55.41 kB / 0.5637 GB, free: 15.58 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/0.6279, allocations: 0 / 0.5637 GB, free: 15.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001729/0.6281, allocations: 49.64 kB / 0.5638 GB, free: 15.53 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.6282, allocations: 51.41 kB / 0.5638 GB, free: 15.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.6283, allocations: 113.2 kB / 0.5639 GB, free: 15.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.6283, allocations: 25.7 kB / 0.564 GB, free: 15.31 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.963e-05/0.6284, allocations: 166.4 kB / 0.5641 GB, free: 15.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.6285, allocations: 3.906 kB / 0.5641 GB, free: 15.14 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-06/0.6285, allocations: 3.938 kB / 0.5641 GB, free: 15.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.6286, allocations: 314.8 kB / 0.5644 GB, free: 14.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.809e-05/0.6287, allocations: 10.59 kB / 0.5645 GB, free: 14.82 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.647e-05/0.6287, allocations: 17.72 kB / 0.5645 GB, free: 14.79 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.31e-05/0.6287, allocations: 8 kB / 0.5645 GB, free: 14.79 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.6288, allocations: 0 / 0.5645 GB, free: 14.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001165/0.6289, allocations: 57.62 kB / 0.5645 GB, free: 14.72 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.6289, allocations: 4 kB / 0.5645 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.6289, allocations: 0 / 0.5645 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.629, allocations: 5.625 kB / 0.5645 GB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.624e-05/0.629, allocations: 0 / 0.5645 GB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.629, allocations: 7.953 kB / 0.5645 GB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.561e-05/0.6291, allocations: 8.016 kB / 0.5646 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.6291, allocations: 4 kB / 0.5646 GB, free: 14.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.853e-05/0.6292, allocations: 109.8 kB / 0.5647 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.055e-05/0.6292, allocations: 11.91 kB / 0.5647 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.015e-05/0.6293, allocations: 3.906 kB / 0.5647 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.6293, allocations: 336 / 0.5647 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6293, allocations: 384 / 0.5647 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.852e-06/0.6293, allocations: 7.953 kB / 0.5647 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004216/0.6298, allocations: 306.6 kB / 0.565 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.6298, allocations: 6.188 kB / 0.565 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.74e-05/0.6298, allocations: 7.938 kB / 0.565 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.6298, allocations: 0 / 0.565 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.6299, allocations: 0 / 0.565 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.6299, allocations: 3.953 kB / 0.565 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.6299, allocations: 0 / 0.565 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000202/0.6301, allocations: 159.4 kB / 0.5651 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.997e-05/0.6302, allocations: 85.17 kB / 0.5652 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.6302, allocations: 0 / 0.5652 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.001e-05/0.6303, allocations: 4 kB / 0.5652 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.866e-05/0.6303, allocations: 7.938 kB / 0.5652 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.6303, allocations: 0 / 0.5652 GB, free: 13.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.608e-05/0.6304, allocations: 87.28 kB / 0.5653 GB, free: 13.82 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6304, allocations: 0 / 0.5653 GB, free: 13.82 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002817/0.6307, allocations: 8 kB / 0.5653 GB, free: 13.81 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0005357/0.6313, allocations: 0.6889 MB / 0.566 GB, free: 13.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001068/0.6314, allocations: 15.98 kB / 0.566 GB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.6314, allocations: 0 / 0.566 GB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.136e-05/0.6314, allocations: 8 kB / 0.566 GB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.6317, allocations: 11.95 kB / 0.566 GB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009664/0.6327, allocations: 0.6175 MB / 0.5666 GB, free: 12.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.633, allocations: 0.6954 MB / 0.5673 GB, free: 11.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.362e-05/0.6331, allocations: 23.25 kB / 0.5673 GB, free: 11.65 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6331, allocations: 0 / 0.5673 GB, free: 11.65 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.564/3.197, allocations: 1.011 MB / 0.5683 GB, free: 10.65 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat