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.00119/0.00119, allocations: 114.4 kB / 17.78 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.001383/0.001383, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.461/1.461, allocations: 222.9 MB / 242.4 MB, free: 15.18 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.2283/0.2283, allocations: 44.19 MB / 336.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 68.03 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4634/0.465, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00322/0.4683, allocations: 1.627 MB / 0.52 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.4694, allocations: 0.5502 MB / 0.5205 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.944e-05/0.4695, allocations: 2.531 kB / 0.5205 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.4697, allocations: 9.797 kB / 0.5205 GB, free: 1.777 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.999e-05/0.4697, allocations: 20.27 kB / 0.5206 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.4702, allocations: 91.61 kB / 0.5206 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002308/0.4704, allocations: 110.9 kB / 0.5208 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.4706, allocations: 30.05 kB / 0.5208 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001029/0.4707, allocations: 47.98 kB / 0.5208 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.4708, allocations: 47.42 kB / 0.5209 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.485e-05/0.4708, allocations: 8.25 kB / 0.5209 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.503e-05/0.4708, allocations: 8.438 kB / 0.5209 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.761e-05/0.4709, allocations: 18.31 kB / 0.5209 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.031e-05/0.471, allocations: 45.56 kB / 0.521 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.4712, allocations: 90.94 kB / 0.521 GB, free: 1.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4712, allocations: 0 / 0.521 GB, free: 1.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4712, allocations: 0 / 0.521 GB, free: 1.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.4712, allocations: 0 / 0.521 GB, free: 1.516 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.0007383/0.472, allocations: 417 kB / 0.5214 GB, free: 1.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.472, allocations: 9.406 kB / 0.5214 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.915e-05/0.4721, allocations: 38.97 kB / 0.5215 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.212e-05/0.4721, allocations: 10.44 kB / 0.5215 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.4724, allocations: 204.2 kB / 0.5217 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.4725, allocations: 7.562 kB / 0.5217 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.552e-05/0.4725, allocations: 10.58 kB / 0.5217 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003439/0.4729, allocations: 106 kB / 0.5218 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.4729, allocations: 0 / 0.5218 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.059e-05/0.4729, allocations: 9.172 kB / 0.5218 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.4729, allocations: 1.031 kB / 0.5218 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002184/0.4731, allocations: 51.06 kB / 0.5219 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007464/0.4739, allocations: 390.1 kB / 0.5222 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.4742, allocations: 101.3 kB / 0.5223 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.4744, allocations: 37.77 kB / 0.5224 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.4744, allocations: 0 / 0.5224 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002563/0.4747, allocations: 109.7 kB / 0.5225 GB, free: 340 kB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.163e-06/0.4747, allocations: 0 / 0.5225 GB, free: 340 kB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004837/0.4752, allocations: 141.6 kB / 0.5226 GB, free: 280 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.4752, allocations: 53.44 kB / 0.5227 GB, free: 216 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.4753, allocations: 151.7 kB / 0.5228 GB, free: 96 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.4754, allocations: 31.89 kB / 0.5228 GB, free: 60 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.126e-05/0.4754, allocations: 102.5 kB / 0.5229 GB, free: 15.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.4755, allocations: 20.92 kB / 0.523 GB, free: 15.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.4755, allocations: 30.64 kB / 0.523 GB, free: 15.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.4757, allocations: 325.3 kB / 0.5233 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.4758, allocations: 35.73 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.4759, allocations: 48.84 kB / 0.5234 GB, free: 15.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.4762, allocations: 78.31 kB / 0.5234 GB, free: 15.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4762, allocations: 1.062 kB / 0.5234 GB, free: 15.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002982/0.4765, allocations: 118.1 kB / 0.5236 GB, free: 15.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.4765, allocations: 16.91 kB / 0.5236 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.4765, allocations: 0 / 0.5236 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.4766, allocations: 5.406 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.4767, allocations: 20.61 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.4767, allocations: 0 / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.4768, allocations: 17.83 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.4768, allocations: 3.172 kB / 0.5236 GB, free: 15.46 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.0001165/0.4769, allocations: 123.3 kB / 0.5237 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.833e-05/0.477, allocations: 16.91 kB / 0.5238 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.745e-05/0.477, allocations: 16.59 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.477, allocations: 2.453 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.4771, allocations: 0 / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.4771, allocations: 0 / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006425/0.4777, allocations: 395.6 kB / 0.5241 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.4777, allocations: 1.875 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.442e-05/0.4778, allocations: 11.8 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.4778, allocations: 1.125 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.4779, allocations: 4 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.4779, allocations: 5.688 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.4779, allocations: 0 / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005334/0.4784, allocations: 246.9 kB / 0.5244 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.217e-05/0.4785, allocations: 88.27 kB / 0.5245 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.4785, allocations: 2.094 kB / 0.5245 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.4787, allocations: 21.55 kB / 0.5245 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.443e-05/0.4788, allocations: 15.27 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.4788, allocations: 3.422 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001021/0.4789, allocations: 110.6 kB / 0.5246 GB, free: 14.6 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4789, allocations: 0 / 0.5246 GB, free: 14.6 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002434/0.4791, allocations: 17.83 kB / 0.5247 GB, free: 14.6 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.0007992/0.4799, allocations: 0.787 MB / 0.5254 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003047/0.4803, allocations: 84.23 kB / 0.5255 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.4803, allocations: 0 / 0.5255 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001382/0.4804, allocations: 42.14 kB / 0.5255 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.4807, allocations: 21.03 kB / 0.5256 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002194/0.4829, allocations: 1.656 MB / 0.5272 GB, free: 12.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003223/0.4833, allocations: 0.6963 MB / 0.5279 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.432e-05/0.4833, allocations: 17.3 kB / 0.5279 GB, free: 11.81 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.882e-05/0.4834, allocations: 31.22 kB / 0.5279 GB, free: 11.79 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4834, allocations: 0 / 0.5279 GB, free: 11.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.5068, allocations: 2.694 MB / 0.5305 GB, free: 10.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.674/8.181, allocations: 7.984 kB / 0.5305 GB, free: 10.67 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