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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 117.5 kB / 17.13 MB, free: 5.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001947/0.001947, allocations: 192.7 kB / 20.07 MB, free: 2.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 207.6 MB / 230.5 MB, free: 4.047 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3412/0.3412, allocations: 44.24 MB / 326.5 MB, free: 6.836 MB / 254.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.002235/0.002235, allocations: 75.91 kB / 462.2 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2492, allocations: 60.99 MB / 0.5109 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002829/0.252, allocations: 1.63 MB / 0.5125 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009417/0.253, allocations: 0.6023 MB / 0.5131 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.866e-05/0.2531, allocations: 5 kB / 0.5131 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.2532, allocations: 9.031 kB / 0.5131 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.635e-05/0.2533, allocations: 22.03 kB / 0.5131 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003383/0.2536, allocations: 80.97 kB / 0.5132 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000159/0.2538, allocations: 125.1 kB / 0.5133 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.2539, allocations: 32.69 kB / 0.5133 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.554e-05/0.2539, allocations: 51.81 kB / 0.5134 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.481e-05/0.254, allocations: 42.48 kB / 0.5134 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.303e-05/0.254, allocations: 8.188 kB / 0.5134 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.745e-05/0.254, allocations: 7.625 kB / 0.5134 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.413e-05/0.2541, allocations: 18.02 kB / 0.5135 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.48e-05/0.2541, allocations: 41.23 kB / 0.5135 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.2543, allocations: 90.67 kB / 0.5136 GB, free: 11.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2543, allocations: 0 / 0.5136 GB, free: 11.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2543, allocations: 0 / 0.5136 GB, free: 11.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2543, allocations: 1.594 kB / 0.5136 GB, free: 11.12 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.0005783/0.2549, allocations: 411.4 kB / 0.514 GB, free: 10.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.2549, allocations: 14.3 kB / 0.514 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.657e-05/0.2549, allocations: 40.22 kB / 0.514 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.705e-05/0.255, allocations: 10.48 kB / 0.514 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.2552, allocations: 212.6 kB / 0.5142 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.2553, allocations: 7.406 kB / 0.5143 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.397e-05/0.2553, allocations: 9.062 kB / 0.5143 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004064/0.2557, allocations: 100.9 kB / 0.5144 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.2557, allocations: 5.375 kB / 0.5144 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.2557, allocations: 4 kB / 0.5144 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.2558, allocations: 1.531 kB / 0.5144 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002419/0.256, allocations: 62.98 kB / 0.5144 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007635/0.2568, allocations: 382.7 kB / 0.5148 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004335/0.2572, allocations: 102.6 kB / 0.5149 GB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.2573, allocations: 34.75 kB / 0.5149 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.2574, allocations: 5.375 kB / 0.5149 GB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003191/0.2577, allocations: 104.3 kB / 0.515 GB, free: 9.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 2.815e-06/0.2577, allocations: 0 / 0.515 GB, free: 9.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0006585/0.2583, allocations: 147.6 kB / 0.5152 GB, free: 9.699 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.2584, allocations: 52.78 kB / 0.5152 GB, free: 9.637 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.2585, allocations: 150.6 kB / 0.5154 GB, free: 9.508 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.2585, allocations: 31.08 kB / 0.5154 GB, free: 9.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.79e-05/0.2586, allocations: 92.27 kB / 0.5155 GB, free: 9.383 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/0.2586, allocations: 30.66 kB / 0.5155 GB, free: 9.355 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.166e-05/0.2587, allocations: 29.97 kB / 0.5155 GB, free: 9.328 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.405e-05/0.2587, allocations: 320.2 kB / 0.5158 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.2589, allocations: 33.38 kB / 0.5159 GB, free: 8.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.2591, allocations: 57.09 kB / 0.5159 GB, free: 8.957 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.2594, allocations: 68.84 kB / 0.516 GB, free: 8.922 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.2594, allocations: 1.062 kB / 0.516 GB, free: 8.922 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004086/0.2598, allocations: 129.7 kB / 0.5161 GB, free: 8.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.2598, allocations: 9.156 kB / 0.5161 GB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2598, allocations: 0 / 0.5161 GB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.841e-05/0.2598, allocations: 6.125 kB / 0.5161 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.26, allocations: 18.42 kB / 0.5162 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.26, allocations: 1.344 kB / 0.5162 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.2602, allocations: 25.5 kB / 0.5162 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.2602, allocations: 3.281 kB / 0.5162 GB, free: 8.812 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,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.0001202/0.2603, allocations: 114.3 kB / 0.5163 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.497e-05/0.2603, allocations: 12.36 kB / 0.5163 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.446e-05/0.2604, allocations: 16 kB / 0.5163 GB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2604, allocations: 1.062 kB / 0.5163 GB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.2604, allocations: 3.984 kB / 0.5163 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2604, allocations: 0 / 0.5163 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007233/0.2611, allocations: 399.1 kB / 0.5167 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2611, allocations: 0 / 0.5167 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.2612, allocations: 12.05 kB / 0.5167 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.2613, allocations: 2.094 kB / 0.5167 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.2613, allocations: 0 / 0.5167 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.2613, allocations: 0 / 0.5167 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.2613, allocations: 6 kB / 0.5167 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006365/0.2619, allocations: 252.5 kB / 0.517 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.362e-05/0.262, allocations: 91.73 kB / 0.517 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.302e-05/0.262, allocations: 5.375 kB / 0.5171 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.2622, allocations: 15.02 kB / 0.5171 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.912e-05/0.2623, allocations: 17.75 kB / 0.5171 GB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.2623, allocations: 2.406 kB / 0.5171 GB, free: 7.965 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001034/0.2624, allocations: 106.4 kB / 0.5172 GB, free: 7.879 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2624, allocations: 0.875 kB / 0.5172 GB, free: 7.879 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004407/0.2628, allocations: 17.59 kB / 0.5172 GB, free: 7.875 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 (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.000881/0.2637, allocations: 0.7885 MB / 0.518 GB, free: 7.148 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004474/0.2642, allocations: 81.44 kB / 0.5181 GB, free: 7.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.2642, allocations: 0 / 0.5181 GB, free: 7.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001957/0.2644, allocations: 42.7 kB / 0.5181 GB, free: 7.102 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005099/0.2649, allocations: 24.45 kB / 0.5181 GB, free: 7.086 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002494/0.2674, allocations: 1.644 MB / 0.5197 GB, free: 5.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001505/0.2675, allocations: 0.6963 MB / 0.5204 GB, free: 4.777 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.207e-05/0.2676, allocations: 16.55 kB / 0.5204 GB, free: 4.758 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.775e-05/0.2677, allocations: 27.44 kB / 0.5204 GB, free: 4.73 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2677, allocations: 0 / 0.5204 GB, free: 4.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03094/0.2986, allocations: 2.642 MB / 0.523 GB, free: 2.082 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.274/8.573, allocations: 10.94 kB / 0.523 GB, free: 2.074 MB / 382.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.392034732270986]