Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009201/0.0009201, allocations: 96.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009992/0.0009993, allocations: 178.7 kB / 16.57 MB, free: 6.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.238/1.238, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2902/0.2902, allocations: 43.55 MB / 314.5 MB, free: 8.793 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004522/0.0004522, allocations: 12 kB / 383.9 MB, free: 8.039 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08921/0.08968, allocations: 58.86 MB / 442.7 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001478/0.09119, allocations: 1.308 MB / 444 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007157/0.09192, allocations: 0.5545 MB / 444.6 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.124e-05/0.09199, allocations: 4 kB / 444.6 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.655e-05/0.09201, allocations: 7.922 kB / 444.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.352e-05/0.09209, allocations: 7.984 kB / 444.6 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.09237, allocations: 87.77 kB / 444.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001248/0.0925, allocations: 63.88 kB / 444.8 MB, free: 11.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.008e-05/0.0926, allocations: 32.22 kB / 444.8 MB, free: 11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.484e-05/0.09266, allocations: 31.86 kB / 444.8 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.607e-05/0.09273, allocations: 35.83 kB / 444.9 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.09275, allocations: 3.938 kB / 444.9 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.186e-05/0.09276, allocations: 4 kB / 444.9 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.959e-05/0.09279, allocations: 19.92 kB / 444.9 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.705e-05/0.09283, allocations: 37.64 kB / 444.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.348e-05/0.09291, allocations: 63.81 kB / 445 MB, free: 10.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.09292, allocations: 0 / 445 MB, free: 10.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09293, allocations: 0 / 445 MB, free: 10.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.125e-06/0.09293, allocations: 0 / 445 MB, free: 10.8 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.0005039/0.09344, allocations: 407 kB / 445.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.65e-05/0.09348, allocations: 12.03 kB / 445.4 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.4e-05/0.09352, allocations: 11.86 kB / 445.4 MB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001703/0.09369, allocations: 190.9 kB / 445.6 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.09372, allocations: 8 kB / 445.6 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.09374, allocations: 8 kB / 445.6 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.09401, allocations: 113.6 kB / 445.7 MB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.09403, allocations: 0 / 445.7 MB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.09404, allocations: 3.984 kB / 445.7 MB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.09405, allocations: 0 / 445.7 MB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001569/0.09421, allocations: 67.72 kB / 445.8 MB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005996/0.09482, allocations: 404.3 kB / 446.2 MB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.09515, allocations: 122.5 kB / 446.3 MB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.09517, allocations: 0 / 446.3 MB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002508/0.09543, allocations: 107.5 kB / 446.4 MB, free: 9.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.09544, allocations: 0 / 446.4 MB, free: 9.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004177/0.09586, allocations: 149.5 kB / 446.6 MB, free: 9.062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.09591, allocations: 51.41 kB / 446.6 MB, free: 9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.09602, allocations: 142.4 kB / 446.8 MB, free: 8.852 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.09605, allocations: 33.7 kB / 446.8 MB, free: 8.812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.481e-05/0.09611, allocations: 108.2 kB / 446.9 MB, free: 8.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.09613, allocations: 15.81 kB / 446.9 MB, free: 8.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.042e-06/0.09615, allocations: 4 kB / 446.9 MB, free: 8.684 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.549e-05/0.09625, allocations: 318.8 kB / 447.2 MB, free: 8.363 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.09638, allocations: 39.91 kB / 447.3 MB, free: 8.324 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.09651, allocations: 57.69 kB / 447.3 MB, free: 8.262 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001107/0.09662, allocations: 40.11 kB / 447.4 MB, free: 8.223 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.09664, allocations: 3.953 kB / 447.4 MB, free: 8.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002752/0.09692, allocations: 133.4 kB / 447.5 MB, free: 8.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.09694, allocations: 4 kB / 447.5 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.09695, allocations: 0 / 447.5 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.09696, allocations: 4 kB / 447.5 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.683e-05/0.09707, allocations: 23.95 kB / 447.5 MB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.708e-06/0.09708, allocations: 0 / 447.5 MB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.09719, allocations: 24.06 kB / 447.5 MB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.0972, allocations: 0 / 447.5 MB, free: 8.027 MB / 382.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,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.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.305e-05/0.09729, allocations: 133.8 kB / 447.7 MB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.791e-05/0.09731, allocations: 11.86 kB / 447.7 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.981e-05/0.09735, allocations: 8.719 kB / 447.7 MB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.09736, allocations: 8 kB / 447.7 MB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.09737, allocations: 0 / 447.7 MB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.09737, allocations: 0 / 447.7 MB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004744/0.09785, allocations: 406.3 kB / 448.1 MB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.09787, allocations: 4 kB / 448.1 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.826e-05/0.09796, allocations: 11.98 kB / 448.1 MB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.09797, allocations: 3.938 kB / 448.1 MB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.09799, allocations: 8 kB / 448.1 MB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.09799, allocations: 0 / 448.1 MB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.098, allocations: 4 kB / 448.1 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004244/0.09843, allocations: 259.3 kB / 448.4 MB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.848e-05/0.09848, allocations: 85.05 kB / 448.5 MB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.09851, allocations: 3.984 kB / 448.5 MB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.09865, allocations: 19.98 kB / 448.5 MB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.09871, allocations: 24.03 kB / 448.5 MB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.09872, allocations: 0 / 448.5 MB, free: 6.961 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.168e-05/0.0988, allocations: 108.6 kB / 448.6 MB, free: 6.855 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09881, allocations: 0 / 448.6 MB, free: 6.855 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002279/0.09904, allocations: 19.98 kB / 448.6 MB, free: 6.836 MB / 382.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 (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 8.122e-05/0.09913, allocations: 103.1 kB / 448.7 MB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002736/0.09941, allocations: 95.92 kB / 448.8 MB, free: 6.629 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.09942, allocations: 4 kB / 448.8 MB, free: 6.625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.09955, allocations: 48.02 kB / 448.9 MB, free: 6.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001974/0.09976, allocations: 19.94 kB / 448.9 MB, free: 6.559 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004251/0.1002, allocations: 241.1 kB / 449.1 MB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.1004, allocations: 0.7081 MB / 449.9 MB, free: 5.562 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.139e-05/0.1005, allocations: 8.422 kB / 449.9 MB, free: 5.551 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.164e-05/0.1005, allocations: 15.42 kB / 449.9 MB, free: 5.535 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1005, allocations: 4 kB / 449.9 MB, free: 5.531 MB / 382.1 MB Notification: Performance of Templates: time 0.00282/0.1033, allocations: 1.003 MB / 450.9 MB, free: 4.531 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches