Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 169.7 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 221.5 MB / 230.7 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008795/0.0008794, allocations: 98.8 kB / 281.6 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2585/0.2585, allocations: 44.15 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.135e-05/2.138e-05, allocations: 4.156 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1313, allocations: 61.92 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4525/0.5838, allocations: 86.71 MB / 0.5794 GB, free: 9.652 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.5841, allocations: 59.97 kB / 0.5795 GB, free: 9.594 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01334/0.5975, allocations: 2.935 MB / 0.5824 GB, free: 6.676 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.5976, allocations: 0 / 0.5824 GB, free: 6.676 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.419e-05/0.5976, allocations: 4 kB / 0.5824 GB, free: 6.672 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008781/0.5985, allocations: 426.2 kB / 0.5828 GB, free: 6.211 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.042e-05/0.5986, allocations: 15.97 kB / 0.5828 GB, free: 6.195 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.494e-05/0.5987, allocations: 11.91 kB / 0.5828 GB, free: 6.184 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/0.5991, allocations: 202.9 kB / 0.583 GB, free: 5.945 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.873e-05/0.5992, allocations: 8 kB / 0.583 GB, free: 5.938 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.5992, allocations: 4 kB / 0.583 GB, free: 5.934 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001384/0.5994, allocations: 31.89 kB / 0.583 GB, free: 5.902 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.5996, allocations: 73.61 kB / 0.5831 GB, free: 5.824 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.5996, allocations: 3.938 kB / 0.5831 GB, free: 5.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.5997, allocations: 0 / 0.5831 GB, free: 5.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.5997, allocations: 0 / 0.5831 GB, free: 5.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009055/0.6006, allocations: 349.1 kB / 0.5834 GB, free: 5.441 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.6008, allocations: 50.58 kB / 0.5835 GB, free: 5.383 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.54e-05/0.6009, allocations: 21.02 kB / 0.5835 GB, free: 5.359 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.6009, allocations: 0 / 0.5835 GB, free: 5.359 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002121/0.6011, allocations: 71.38 kB / 0.5836 GB, free: 5.277 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.6011, allocations: 0 / 0.5836 GB, free: 5.277 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.000299/0.6014, allocations: 65.59 kB / 0.5836 GB, free: 5.207 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.6015, allocations: 55.41 kB / 0.5837 GB, free: 5.141 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.6017, allocations: 127 kB / 0.5838 GB, free: 5.008 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.6017, allocations: 25.7 kB / 0.5838 GB, free: 4.977 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.112e-05/0.6018, allocations: 108.3 kB / 0.5839 GB, free: 4.863 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.205e-05/0.6019, allocations: 19.8 kB / 0.584 GB, free: 4.844 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-06/0.6019, allocations: 0 / 0.584 GB, free: 4.844 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.6021, allocations: 318.8 kB / 0.5843 GB, free: 4.523 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.951e-05/0.6022, allocations: 16 kB / 0.5843 GB, free: 4.508 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.346e-05/0.6023, allocations: 38.55 kB / 0.5843 GB, free: 4.465 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.446e-05/0.6023, allocations: 20.06 kB / 0.5843 GB, free: 4.445 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.6023, allocations: 0 / 0.5843 GB, free: 4.445 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000203/0.6025, allocations: 81.53 kB / 0.5844 GB, free: 4.359 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.6026, allocations: 4 kB / 0.5844 GB, free: 4.355 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.6026, allocations: 0 / 0.5844 GB, free: 4.355 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.6026, allocations: 0 / 0.5844 GB, free: 4.355 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.6028, allocations: 19.98 kB / 0.5844 GB, free: 4.336 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.6028, allocations: 4.031 kB / 0.5844 GB, free: 4.332 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.603, allocations: 15.98 kB / 0.5845 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.603, allocations: 4 kB / 0.5845 GB, free: 4.312 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: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete 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.0001177/0.6031, allocations: 104.9 kB / 0.5846 GB, free: 4.203 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001525/0.6033, allocations: 74.23 kB / 0.5846 GB, free: 4.125 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.6033, allocations: 11.91 kB / 0.5846 GB, free: 4.113 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.536e-05/0.6034, allocations: 16.61 kB / 0.5847 GB, free: 4.094 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.6034, allocations: 4 kB / 0.5847 GB, free: 4.09 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.6034, allocations: 3.938 kB / 0.5847 GB, free: 4.086 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.6034, allocations: 7.938 kB / 0.5847 GB, free: 4.078 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004631/0.6039, allocations: 315.3 kB / 0.585 GB, free: 3.727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.6039, allocations: 11.92 kB / 0.585 GB, free: 3.715 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.6041, allocations: 12 kB / 0.585 GB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.6041, allocations: 4 kB / 0.585 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.6041, allocations: 8 kB / 0.585 GB, free: 3.691 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.6041, allocations: 0 / 0.585 GB, free: 3.691 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/0.6042, allocations: 8.016 kB / 0.585 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/0.6045, allocations: 187.4 kB / 0.5852 GB, free: 3.484 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.462e-05/0.6046, allocations: 81.02 kB / 0.5853 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.6046, allocations: 0 / 0.5853 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.6048, allocations: 32.06 kB / 0.5853 GB, free: 3.355 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.221e-05/0.6049, allocations: 7.984 kB / 0.5853 GB, free: 3.348 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.6049, allocations: 15.94 kB / 0.5853 GB, free: 3.332 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.837e-05/0.605, allocations: 93.25 kB / 0.5854 GB, free: 3.242 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.605, allocations: 0 / 0.5854 GB, free: 3.242 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004264/0.6055, allocations: 19.84 kB / 0.5854 GB, free: 3.223 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 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * 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.0008192/0.6063, allocations: 0.7328 MB / 0.5862 GB, free: 2.465 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002034/0.6065, allocations: 43.94 kB / 0.5862 GB, free: 2.422 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.6065, allocations: 0 / 0.5862 GB, free: 2.422 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.852e-05/0.6066, allocations: 24 kB / 0.5862 GB, free: 2.398 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004272/0.6071, allocations: 17.39 kB / 0.5862 GB, free: 2.383 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008153/0.6079, allocations: 175.9 kB / 0.5864 GB, free: 2.172 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000444/0.6084, allocations: 0.7041 MB / 0.5871 GB, free: 1.441 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.804e-05/0.6085, allocations: 4.672 kB / 0.5871 GB, free: 1.438 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.968e-05/0.6086, allocations: 31.36 kB / 0.5871 GB, free: 1.406 MB / 394.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6086, allocations: 3.938 kB / 0.5871 GB, free: 1.402 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02409/0.6327, allocations: 1.715 MB / 0.5888 GB, free: 15.7 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003202/0.6331, allocations: 130.6 kB / 0.5889 GB, free: 15.51 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.524/2.157, allocations: 8.031 kB / 0.5889 GB, free: 15.5 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat