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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 109.5 kB / 17.77 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 188 kB / 18.71 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2036/0.2036, allocations: 44.18 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3642, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002718/0.3669, allocations: 1.614 MB / 0.52 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008847/0.3678, allocations: 0.5482 MB / 0.5205 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.55e-05/0.368, allocations: 2.469 kB / 0.5205 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.3681, allocations: 10.12 kB / 0.5205 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.328e-05/0.3682, allocations: 19.41 kB / 0.5206 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.3685, allocations: 91.95 kB / 0.5206 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.3687, allocations: 118.3 kB / 0.5208 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.3688, allocations: 30.48 kB / 0.5208 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.179e-05/0.3689, allocations: 48.75 kB / 0.5208 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.831e-05/0.369, allocations: 42.47 kB / 0.5209 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.252e-05/0.369, allocations: 7.844 kB / 0.5209 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.72e-05/0.3691, allocations: 8.156 kB / 0.5209 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.019e-05/0.3691, allocations: 27.8 kB / 0.5209 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.013e-05/0.3692, allocations: 36.88 kB / 0.5209 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.3693, allocations: 90.19 kB / 0.521 GB, free: 1.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.3693, allocations: 1.188 kB / 0.521 GB, free: 1.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3693, allocations: 0 / 0.521 GB, free: 1.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.3693, allocations: 0 / 0.521 GB, free: 1.508 MB / 382.1 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.0006001/0.37, allocations: 409 kB / 0.5214 GB, free: 1.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.37, allocations: 13.34 kB / 0.5214 GB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.581e-05/0.37, allocations: 43.22 kB / 0.5215 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.475e-05/0.3701, allocations: 10.38 kB / 0.5215 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/0.3703, allocations: 212.4 kB / 0.5217 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.3703, allocations: 11.75 kB / 0.5217 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.3704, allocations: 4.75 kB / 0.5217 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.3707, allocations: 109.8 kB / 0.5218 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.3707, allocations: 0 / 0.5218 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.3707, allocations: 5.812 kB / 0.5218 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3707, allocations: 1.188 kB / 0.5218 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001675/0.3709, allocations: 50.83 kB / 0.5219 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006393/0.3715, allocations: 386.9 kB / 0.5222 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003228/0.3719, allocations: 100.7 kB / 0.5223 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.372, allocations: 40.58 kB / 0.5224 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.372, allocations: 1.875 kB / 0.5224 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002409/0.3722, allocations: 97.36 kB / 0.5225 GB, free: 340 kB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.3723, allocations: 0 / 0.5225 GB, free: 340 kB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004435/0.3727, allocations: 146.2 kB / 0.5226 GB, free: 276 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.3727, allocations: 57.16 kB / 0.5227 GB, free: 208 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.3729, allocations: 158.6 kB / 0.5228 GB, free: 80 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.3729, allocations: 27.39 kB / 0.5228 GB, free: 48 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.327e-05/0.373, allocations: 102.8 kB / 0.5229 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.373, allocations: 17.03 kB / 0.523 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.282e-05/0.3731, allocations: 27.28 kB / 0.523 GB, free: 15.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.3732, allocations: 320.5 kB / 0.5233 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.3733, allocations: 40.5 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.3735, allocations: 52.25 kB / 0.5234 GB, free: 15.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.3737, allocations: 78.33 kB / 0.5234 GB, free: 15.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3737, allocations: 1.281 kB / 0.5234 GB, free: 15.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002896/0.374, allocations: 117.7 kB / 0.5236 GB, free: 15.47 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.374, allocations: 10.5 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.374, allocations: 0 / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3741, allocations: 5.281 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.3742, allocations: 15.19 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.3742, allocations: 2.562 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.479e-05/0.3743, allocations: 21.64 kB / 0.5236 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.3743, allocations: 2.594 kB / 0.5236 GB, free: 15.45 MB / 398.1 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,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.3744, allocations: 129.2 kB / 0.5237 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.773e-05/0.3745, allocations: 11.08 kB / 0.5237 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.389e-05/0.3745, allocations: 16.03 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3745, allocations: 1.25 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3745, allocations: 1.281 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3745, allocations: 0.6562 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005751/0.3751, allocations: 392 kB / 0.5241 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3751, allocations: 4 kB / 0.5241 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.773e-05/0.3752, allocations: 16.39 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3752, allocations: 0.6562 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.3753, allocations: 5.562 kB / 0.5242 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3753, allocations: 0.6094 kB / 0.5242 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3753, allocations: 4.281 kB / 0.5242 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004703/0.3758, allocations: 254.7 kB / 0.5244 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.3758, allocations: 85.97 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.3758, allocations: 5.875 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/0.376, allocations: 16.11 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.03e-05/0.3761, allocations: 19.5 kB / 0.5245 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.764e-06/0.3761, allocations: 2.25 kB / 0.5245 GB, free: 14.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001012/0.3762, allocations: 115 kB / 0.5246 GB, free: 14.58 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3762, allocations: 0 / 0.5246 GB, free: 14.58 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002588/0.3765, allocations: 14.52 kB / 0.5247 GB, free: 14.58 MB / 398.1 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 (integrator.reset,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000796/0.3773, allocations: 0.7875 MB / 0.5254 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003175/0.3776, allocations: 84.45 kB / 0.5255 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3776, allocations: 0 / 0.5255 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.3777, allocations: 41.8 kB / 0.5255 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.3781, allocations: 19.27 kB / 0.5256 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.3802, allocations: 1.65 MB / 0.5272 GB, free: 12.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.3805, allocations: 0.7007 MB / 0.5279 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.55e-05/0.3806, allocations: 9.016 kB / 0.5279 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.71e-05/0.3806, allocations: 31.14 kB / 0.5279 GB, free: 11.78 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3806, allocations: 4 kB / 0.5279 GB, free: 11.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.403, allocations: 2.691 MB / 0.5305 GB, free: 10.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.69/8.093, allocations: 9.109 kB / 0.5305 GB, free: 10.64 MB / 398.1 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/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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,integrator.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,change.pre_u_start,change.u,change.y,const1.k,const1.y,constMinus1.k,constMinus1.y,der(integrator.y),integrator.initType,integrator.k,integrator.limitsAtInit,integrator.outMax,integrator.outMin,integrator.reset,integrator.strict,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,switch.u1,switch.u2,switch.u3,switch.y,time