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.00156/0.001559, allocations: 181.1 kB / 13.66 MB, free: 1.664 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.023/2.023, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001062/0.001062, allocations: 90.7 kB / 267.5 MB, free: 14.04 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.286/0.286, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.729e-05/3.744e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1245, allocations: 58.87 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5337/0.6583, allocations: 84.8 MB / 0.5557 GB, free: 2.332 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.6585, allocations: 58.8 kB / 0.5558 GB, free: 2.305 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003205/0.6618, allocations: 0.98 MB / 0.5567 GB, free: 1.438 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6618, allocations: 3.938 kB / 0.5567 GB, free: 1.434 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.6618, allocations: 0 / 0.5567 GB, free: 1.434 MB / 362.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.0002997/0.6621, allocations: 341 kB / 0.557 GB, free: 1.062 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.6622, allocations: 8.031 kB / 0.5571 GB, free: 1.055 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.454e-05/0.6622, allocations: 39.3 kB / 0.5571 GB, free: 1.012 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.127e-05/0.6623, allocations: 8.531 kB / 0.5571 GB, free: 1.004 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.6624, allocations: 171 kB / 0.5573 GB, free: 0.7969 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.218e-06/0.6625, allocations: 7.875 kB / 0.5573 GB, free: 0.793 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.6625, allocations: 4 kB / 0.5573 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.6626, allocations: 50 kB / 0.5573 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.6626, allocations: 3.938 kB / 0.5573 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.6627, allocations: 4 kB / 0.5573 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.6627, allocations: 0 / 0.5573 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.256e-05/0.6628, allocations: 11.62 kB / 0.5573 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005559/0.6633, allocations: 303.2 kB / 0.5576 GB, free: 408 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.249e-05/0.6634, allocations: 25.08 kB / 0.5577 GB, free: 376 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.215e-05/0.6634, allocations: 12.17 kB / 0.5577 GB, free: 364 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.306e-06/0.6634, allocations: 0 / 0.5577 GB, free: 364 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.249e-05/0.6635, allocations: 51.28 kB / 0.5577 GB, free: 304 kB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.724e-06/0.6636, allocations: 0 / 0.5577 GB, free: 304 kB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001327/0.6637, allocations: 53.12 kB / 0.5578 GB, free: 248 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.802e-05/0.6637, allocations: 59.39 kB / 0.5578 GB, free: 176 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.223e-05/0.6638, allocations: 107.8 kB / 0.5579 GB, free: 64 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.6639, allocations: 25.7 kB / 0.558 GB, free: 32 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.389e-05/0.664, allocations: 154.1 kB / 0.5581 GB, free: 15.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/0.664, allocations: 15.83 kB / 0.5581 GB, free: 15.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-06/0.664, allocations: 0 / 0.5581 GB, free: 15.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.6642, allocations: 310.8 kB / 0.5584 GB, free: 15.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.75e-05/0.6642, allocations: 14.78 kB / 0.5584 GB, free: 15.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.774e-05/0.6643, allocations: 17.22 kB / 0.5584 GB, free: 15.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.06e-05/0.6643, allocations: 4 kB / 0.5584 GB, free: 15.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.6643, allocations: 0 / 0.5584 GB, free: 15.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001184/0.6644, allocations: 53.38 kB / 0.5585 GB, free: 15.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.6645, allocations: 4 kB / 0.5585 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.6645, allocations: 0 / 0.5585 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.6645, allocations: 4 kB / 0.5585 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.822e-05/0.6646, allocations: 11.48 kB / 0.5585 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.6646, allocations: 4 kB / 0.5585 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.016e-05/0.6647, allocations: 7.891 kB / 0.5585 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.6647, allocations: 8.172 kB / 0.5585 GB, free: 15.43 MB / 378.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 () * 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.502e-05/0.6648, allocations: 101 kB / 0.5586 GB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.889e-05/0.6648, allocations: 7.984 kB / 0.5586 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.6649, allocations: 11.34 kB / 0.5586 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.6649, allocations: 0 / 0.5586 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.6649, allocations: 3.953 kB / 0.5587 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.6649, allocations: 4 kB / 0.5587 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003974/0.6653, allocations: 293.6 kB / 0.5589 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.6653, allocations: 0 / 0.5589 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.954e-05/0.6654, allocations: 4 kB / 0.5589 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.6654, allocations: 0 / 0.5589 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.6654, allocations: 3.953 kB / 0.5589 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.6654, allocations: 0 / 0.5589 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.6654, allocations: 3.938 kB / 0.5589 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001926/0.6656, allocations: 158 kB / 0.5591 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.734e-05/0.6657, allocations: 85 kB / 0.5592 GB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.6657, allocations: 0 / 0.5592 GB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.38e-05/0.6658, allocations: 7.984 kB / 0.5592 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.964e-05/0.6659, allocations: 0 / 0.5592 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-06/0.6659, allocations: 3.609 kB / 0.5592 GB, free: 14.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.632e-05/0.666, allocations: 98.95 kB / 0.5593 GB, free: 14.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.666, allocations: 0 / 0.5593 GB, free: 14.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002717/0.6663, allocations: 11.94 kB / 0.5593 GB, free: 14.58 MB / 378.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 () * 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.0004926/0.6668, allocations: 0.6764 MB / 0.56 GB, free: 13.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.674e-05/0.6669, allocations: 19.73 kB / 0.56 GB, free: 13.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.6669, allocations: 0 / 0.56 GB, free: 13.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.369e-05/0.6669, allocations: 15.38 kB / 0.56 GB, free: 13.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.6673, allocations: 14.66 kB / 0.56 GB, free: 13.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000487/0.6678, allocations: 145.5 kB / 0.5601 GB, free: 13.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.6681, allocations: 0.6887 MB / 0.5608 GB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.303e-05/0.6682, allocations: 18.25 kB / 0.5608 GB, free: 12.95 MB / 378.7 MB Notification: Performance of SimCode: time 7.32e-07/0.6682, allocations: 0 / 0.5608 GB, free: 12.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.476/3.144, allocations: 1.013 MB / 0.5618 GB, free: 11.94 MB / 378.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