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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0009258/0.0009258, allocations: 182.9 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.263/1.263, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0007998/0.0008, allocations: 98.78 kB / 270.2 MB, free: 13.36 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.2073/0.2073, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002847/0.0002847, allocations: 12 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09836/0.09866, allocations: 58.86 MB / 490.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3108/0.4095, allocations: 86.12 MB / 0.5629 GB, free: 13.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/0.4097, allocations: 68.75 kB / 0.563 GB, free: 13.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004355/0.4141, allocations: 1.661 MB / 0.5646 GB, free: 12.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4141, allocations: 0 / 0.5646 GB, free: 12.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.4142, allocations: 4 kB / 0.5646 GB, free: 12.03 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005214/0.4147, allocations: 388.4 kB / 0.565 GB, free: 11.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.4147, allocations: 12.03 kB / 0.565 GB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.466e-05/0.4148, allocations: 38.05 kB / 0.5651 GB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.4148, allocations: 7.906 kB / 0.5651 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.415, allocations: 194 kB / 0.5652 GB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.4151, allocations: 2.875 kB / 0.5653 GB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.362e-05/0.4151, allocations: 11.94 kB / 0.5653 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.4152, allocations: 73.17 kB / 0.5653 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.4153, allocations: 0 / 0.5653 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.4153, allocations: 0 / 0.5653 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.4153, allocations: 8 kB / 0.5653 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.325e-05/0.4154, allocations: 33.8 kB / 0.5654 GB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005457/0.4159, allocations: 358.6 kB / 0.5657 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.946e-05/0.416, allocations: 48.31 kB / 0.5658 GB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.4161, allocations: 3.984 kB / 0.5658 GB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001402/0.4162, allocations: 77.03 kB / 0.5658 GB, free: 10.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.4162, allocations: 0 / 0.5658 GB, free: 10.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001838/0.4164, allocations: 82.78 kB / 0.5659 GB, free: 10.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/0.4165, allocations: 55.41 kB / 0.566 GB, free: 10.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.478e-05/0.4166, allocations: 130.6 kB / 0.5661 GB, free: 10.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.4166, allocations: 29.7 kB / 0.5661 GB, free: 10.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.2e-05/0.4166, allocations: 97.5 kB / 0.5662 GB, free: 10.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.4167, allocations: 22.97 kB / 0.5662 GB, free: 10.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-06/0.4167, allocations: 0 / 0.5662 GB, free: 10.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.4168, allocations: 325.6 kB / 0.5665 GB, free: 9.996 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.657e-05/0.4168, allocations: 11.5 kB / 0.5666 GB, free: 9.988 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.952e-05/0.4169, allocations: 49.81 kB / 0.5666 GB, free: 9.938 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.494e-05/0.4169, allocations: 15.19 kB / 0.5666 GB, free: 9.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4169, allocations: 0 / 0.5666 GB, free: 9.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001251/0.4171, allocations: 87.34 kB / 0.5667 GB, free: 9.852 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.4171, allocations: 11.94 kB / 0.5667 GB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.4171, allocations: 0 / 0.5667 GB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.4171, allocations: 0 / 0.5667 GB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.944e-05/0.4172, allocations: 8.281 kB / 0.5667 GB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.4172, allocations: 8.062 kB / 0.5667 GB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.098e-05/0.4173, allocations: 20.42 kB / 0.5668 GB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.4173, allocations: 7.938 kB / 0.5668 GB, free: 9.801 MB / 378.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 8.408e-05/0.4174, allocations: 117 kB / 0.5669 GB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.47e-05/0.4174, allocations: 7.906 kB / 0.5669 GB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.33e-05/0.4174, allocations: 18.98 kB / 0.5669 GB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.4174, allocations: 0 / 0.5669 GB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4174, allocations: 4 kB / 0.5669 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.4175, allocations: 0 / 0.5669 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/0.4178, allocations: 341.6 kB / 0.5672 GB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.4178, allocations: 4 kB / 0.5672 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.93e-05/0.4179, allocations: 7.938 kB / 0.5672 GB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.4179, allocations: 4 kB / 0.5672 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.4179, allocations: 3.875 kB / 0.5672 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.4179, allocations: 0 / 0.5672 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.4179, allocations: 4 kB / 0.5672 GB, free: 9.273 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001966/0.4181, allocations: 184.7 kB / 0.5674 GB, free: 9.094 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.743e-05/0.4182, allocations: 85.02 kB / 0.5675 GB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.082e-05/0.4182, allocations: 7.391 kB / 0.5675 GB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.961e-05/0.4183, allocations: 11.98 kB / 0.5675 GB, free: 8.977 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.361e-05/0.4183, allocations: 11.92 kB / 0.5675 GB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.4184, allocations: 0 / 0.5675 GB, free: 8.965 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.025e-05/0.4184, allocations: 108.4 kB / 0.5676 GB, free: 8.871 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4184, allocations: 4.062 kB / 0.5676 GB, free: 8.867 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002194/0.4187, allocations: 19.34 kB / 0.5677 GB, free: 8.852 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: 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.0004482/0.4191, allocations: 0.7207 MB / 0.5684 GB, free: 8.121 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.4192, allocations: 46.11 kB / 0.5684 GB, free: 8.086 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.4193, allocations: 192 / 0.5684 GB, free: 8.086 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.936e-05/0.4193, allocations: 27.19 kB / 0.5684 GB, free: 8.062 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.4195, allocations: 23.61 kB / 0.5685 GB, free: 8.047 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.4206, allocations: 0.9224 MB / 0.5694 GB, free: 7.125 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.4209, allocations: 0.7043 MB / 0.57 GB, free: 6.395 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.694e-05/0.4209, allocations: 8.422 kB / 0.5701 GB, free: 6.387 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.039e-05/0.421, allocations: 29.8 kB / 0.5701 GB, free: 6.371 MB / 378.7 MB Notification: Performance of SimCode: time 2.545e-06/0.421, allocations: 0 / 0.5701 GB, free: 6.371 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.013/0.434, allocations: 1.906 MB / 0.5719 GB, free: 4.508 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002216/0.4342, allocations: 167.9 kB / 0.5721 GB, free: 4.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.531/1.965, allocations: 4 kB / 0.5721 GB, free: 4.266 MB / 378.7 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) 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