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.001024/0.001024, allocations: 176.6 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008682/0.0008681, allocations: 100 kB / 292.1 MB, free: 10.92 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.3645/0.3645, allocations: 44.21 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003117, allocations: 12 kB / 460 MB, free: 1.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.3838, allocations: 61.91 MB / 0.5096 GB, free: 37.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.499, allocations: 87.45 MB / 0.595 GB, free: 7.676 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.4993, allocations: 67.94 kB / 0.5951 GB, free: 7.613 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008669/0.5079, allocations: 2.951 MB / 0.598 GB, free: 4.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.508, allocations: 0 / 0.598 GB, free: 4.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.508, allocations: 0 / 0.598 GB, free: 4.66 MB / 410.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.0006339/0.5086, allocations: 446.9 kB / 0.5984 GB, free: 4.176 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.5087, allocations: 8.031 kB / 0.5984 GB, free: 4.168 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.83e-05/0.5087, allocations: 38.56 kB / 0.5984 GB, free: 4.121 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.513e-05/0.5088, allocations: 15.91 kB / 0.5985 GB, free: 4.105 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.5091, allocations: 208.8 kB / 0.5987 GB, free: 3.863 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.5091, allocations: 12 kB / 0.5987 GB, free: 3.852 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.5091, allocations: 15.94 kB / 0.5987 GB, free: 3.836 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.5094, allocations: 109.6 kB / 0.5988 GB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.5094, allocations: 0 / 0.5988 GB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.5095, allocations: 0 / 0.5988 GB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.5095, allocations: 0 / 0.5988 GB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000158/0.5096, allocations: 59.91 kB / 0.5988 GB, free: 3.664 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006015/0.5102, allocations: 388.4 kB / 0.5992 GB, free: 3.234 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003263/0.5106, allocations: 118.5 kB / 0.5993 GB, free: 3.109 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.5106, allocations: 4.031 kB / 0.5993 GB, free: 3.105 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002697/0.5109, allocations: 103.5 kB / 0.5994 GB, free: 2.992 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.5109, allocations: 3.938 kB / 0.5994 GB, free: 2.988 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004451/0.5113, allocations: 149.5 kB / 0.5996 GB, free: 2.836 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.5114, allocations: 51.41 kB / 0.5996 GB, free: 2.773 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.5115, allocations: 146.5 kB / 0.5998 GB, free: 2.625 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.5115, allocations: 29.7 kB / 0.5998 GB, free: 2.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.991e-05/0.5116, allocations: 108.2 kB / 0.5999 GB, free: 2.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.5116, allocations: 15.8 kB / 0.5999 GB, free: 2.465 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-06/0.5116, allocations: 4 kB / 0.5999 GB, free: 2.461 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.853e-05/0.5117, allocations: 318.8 kB / 0.6002 GB, free: 2.141 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.5118, allocations: 39.97 kB / 0.6003 GB, free: 2.102 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.512, allocations: 53.69 kB / 0.6003 GB, free: 2.043 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.5121, allocations: 35.98 kB / 0.6003 GB, free: 2.008 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.5121, allocations: 0 / 0.6003 GB, free: 2.008 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002811/0.5124, allocations: 129.5 kB / 0.6005 GB, free: 1.875 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.5124, allocations: 5.562 kB / 0.6005 GB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.5124, allocations: 0 / 0.6005 GB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.5124, allocations: 3.984 kB / 0.6005 GB, free: 1.867 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.748e-05/0.5125, allocations: 19.94 kB / 0.6005 GB, free: 1.848 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.5126, allocations: 0 / 0.6005 GB, free: 1.848 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.5127, allocations: 36.23 kB / 0.6005 GB, free: 1.812 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.5127, allocations: 7.953 kB / 0.6005 GB, free: 1.805 MB / 410.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 () * 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.068e-05/0.5128, allocations: 115.8 kB / 0.6007 GB, free: 1.684 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.5128, allocations: 15.83 kB / 0.6007 GB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.066e-05/0.5128, allocations: 16.72 kB / 0.6007 GB, free: 1.652 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.5129, allocations: 0 / 0.6007 GB, free: 1.652 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.5129, allocations: 4 kB / 0.6007 GB, free: 1.648 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.5129, allocations: 0 / 0.6007 GB, free: 1.648 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004755/0.5134, allocations: 402.4 kB / 0.6011 GB, free: 1.199 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5134, allocations: 4 kB / 0.6011 GB, free: 1.195 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.655e-05/0.5135, allocations: 15.98 kB / 0.6011 GB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.5135, allocations: 0 / 0.6011 GB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.5135, allocations: 0 / 0.6011 GB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.5135, allocations: 0 / 0.6011 GB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.5135, allocations: 4 kB / 0.6011 GB, free: 1.176 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004306/0.5139, allocations: 263.7 kB / 0.6013 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.514, allocations: 96.95 kB / 0.6014 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.514, allocations: 7.984 kB / 0.6014 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.5142, allocations: 19.98 kB / 0.6015 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.951e-05/0.5142, allocations: 15.97 kB / 0.6015 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.507e-06/0.5142, allocations: 4 kB / 0.6015 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.473e-05/0.5143, allocations: 122.6 kB / 0.6016 GB, free: 0.625 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5143, allocations: 4 kB / 0.6016 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002226/0.5146, allocations: 16 kB / 0.6016 GB, free: 0.6055 MB / 410.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) * 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.0006701/0.5152, allocations: 0.7874 MB / 0.6024 GB, free: 15.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002666/0.5155, allocations: 88 kB / 0.6025 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5155, allocations: 0 / 0.6025 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.5157, allocations: 47.92 kB / 0.6025 GB, free: 15.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.5159, allocations: 24.05 kB / 0.6025 GB, free: 15.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.5171, allocations: 0.8703 MB / 0.6034 GB, free: 14.71 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002136/0.5174, allocations: 0.7043 MB / 0.6041 GB, free: 13.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.609e-05/0.5174, allocations: 8.75 kB / 0.6041 GB, free: 13.97 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.653e-05/0.5175, allocations: 31.36 kB / 0.6041 GB, free: 13.94 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5175, allocations: 0 / 0.6041 GB, free: 13.94 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01176/0.5293, allocations: 2.214 MB / 0.6063 GB, free: 11.85 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/0.5295, allocations: 177.7 kB / 0.6064 GB, free: 11.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.53/2.059, allocations: 0 / 0.6064 GB, free: 11.6 MB / 426.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