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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 119.6 kB / 20.44 MB, free: 1.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 223.7 kB / 23.75 MB, free: 4.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.533/1.533, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2352/0.2352, allocations: 44.91 MB / 358.8 MB, free: 6.285 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 71.88 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3504, allocations: 65.46 MB / 0.557 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002862/0.3533, allocations: 1.657 MB / 0.5586 GB, free: 6.113 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.3544, allocations: 0.6087 MB / 0.5592 GB, free: 5.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.456e-05/0.3544, allocations: 7.938 kB / 0.5592 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.3545, allocations: 11.86 kB / 0.5592 GB, free: 5.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.73e-05/0.3546, allocations: 11.88 kB / 0.5592 GB, free: 5.469 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.3549, allocations: 87.81 kB / 0.5593 GB, free: 5.383 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.3551, allocations: 115.7 kB / 0.5594 GB, free: 5.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.3552, allocations: 27.95 kB / 0.5595 GB, free: 5.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.604e-05/0.3553, allocations: 47.84 kB / 0.5595 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.813e-05/0.3554, allocations: 39.78 kB / 0.5596 GB, free: 5.156 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.3554, allocations: 12 kB / 0.5596 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.613e-05/0.3554, allocations: 8 kB / 0.5596 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.897e-05/0.3555, allocations: 19.92 kB / 0.5596 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.899e-05/0.3555, allocations: 47.72 kB / 0.5596 GB, free: 5.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.3557, allocations: 81.61 kB / 0.5597 GB, free: 4.992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3557, allocations: 0 / 0.5597 GB, free: 4.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3557, allocations: 0 / 0.5597 GB, free: 4.992 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.3557, allocations: 0 / 0.5597 GB, free: 4.992 MB / 398.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.000636/0.3563, allocations: 350.8 kB / 0.56 GB, free: 4.617 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.3564, allocations: 12.03 kB / 0.5601 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.175e-05/0.3564, allocations: 38.73 kB / 0.5601 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.822e-05/0.3564, allocations: 16.89 kB / 0.5601 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/0.3567, allocations: 153 kB / 0.5603 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.3567, allocations: 8.375 kB / 0.5603 GB, free: 4.363 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.3567, allocations: 4.375 kB / 0.5603 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.357, allocations: 109.8 kB / 0.5604 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.357, allocations: 0 / 0.5604 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.3571, allocations: 4 kB / 0.5604 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.3571, allocations: 7.984 kB / 0.5604 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.3572, allocations: 47.91 kB / 0.5604 GB, free: 4.188 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006962/0.3579, allocations: 359.6 kB / 0.5608 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003452/0.3583, allocations: 102.5 kB / 0.5609 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.3584, allocations: 40.91 kB / 0.5609 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.3584, allocations: 0 / 0.5609 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.3587, allocations: 99.34 kB / 0.561 GB, free: 3.531 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.3587, allocations: 3.938 kB / 0.561 GB, free: 3.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004562/0.3591, allocations: 145.5 kB / 0.5611 GB, free: 3.379 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.3592, allocations: 55.41 kB / 0.5612 GB, free: 3.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.3593, allocations: 146.1 kB / 0.5613 GB, free: 3.164 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.3594, allocations: 29.7 kB / 0.5614 GB, free: 3.129 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.626e-05/0.3594, allocations: 104 kB / 0.5615 GB, free: 3.023 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.462e-05/0.3595, allocations: 23.94 kB / 0.5615 GB, free: 3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.254e-05/0.3595, allocations: 29.7 kB / 0.5615 GB, free: 2.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.3597, allocations: 322.8 kB / 0.5618 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.3598, allocations: 35.98 kB / 0.5619 GB, free: 2.605 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.36, allocations: 49.69 kB / 0.5619 GB, free: 2.551 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.3602, allocations: 81.61 kB / 0.562 GB, free: 2.465 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3602, allocations: 0 / 0.562 GB, free: 2.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000298/0.3605, allocations: 113.5 kB / 0.5621 GB, free: 2.348 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.3605, allocations: 7.938 kB / 0.5621 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3605, allocations: 4.031 kB / 0.5621 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.3605, allocations: 0 / 0.5621 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.3607, allocations: 23.92 kB / 0.5621 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.3607, allocations: 4 kB / 0.5621 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.006e-05/0.3607, allocations: 11.98 kB / 0.5621 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.3608, allocations: 4.281 kB / 0.5621 GB, free: 2.293 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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$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.0001623/0.3609, allocations: 121.8 kB / 0.5623 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.3609, allocations: 19.84 kB / 0.5623 GB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.105e-05/0.361, allocations: 16.66 kB / 0.5623 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.361, allocations: 0 / 0.5623 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.361, allocations: 0 / 0.5623 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.361, allocations: 0 / 0.5623 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000558/0.3616, allocations: 369.5 kB / 0.5627 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3616, allocations: 0 / 0.5627 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.5e-05/0.3616, allocations: 8 kB / 0.5627 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3616, allocations: 4 kB / 0.5627 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.3617, allocations: 7.984 kB / 0.5627 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3617, allocations: 0 / 0.5627 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3617, allocations: 0 / 0.5627 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004903/0.3621, allocations: 255.3 kB / 0.5629 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.985e-05/0.3622, allocations: 11.94 kB / 0.5629 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.801e-05/0.3622, allocations: 4 kB / 0.5629 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.3623, allocations: 27.97 kB / 0.563 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.936e-05/0.3624, allocations: 11.98 kB / 0.563 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.3624, allocations: 0 / 0.563 GB, free: 1.371 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.973e-05/0.3625, allocations: 115.2 kB / 0.5631 GB, free: 1.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3625, allocations: 0 / 0.5631 GB, free: 1.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002469/0.3627, allocations: 15.94 kB / 0.5631 GB, free: 1.242 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,change.u,booleanPulse.pulseStart) * 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.0007991/0.3635, allocations: 0.7754 MB / 0.5639 GB, free: 452 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002928/0.3638, allocations: 87.94 kB / 0.5639 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3638, allocations: 0 / 0.5639 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.364, allocations: 47.89 kB / 0.564 GB, free: 316 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.3643, allocations: 23.92 kB / 0.564 GB, free: 292 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/0.3668, allocations: 1.692 MB / 0.5657 GB, free: 14.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.3672, allocations: 0.7004 MB / 0.5663 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.566e-05/0.3673, allocations: 12.47 kB / 0.5664 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.699e-05/0.3673, allocations: 35.36 kB / 0.5664 GB, free: 13.73 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3673, allocations: 0 / 0.5664 GB, free: 13.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03225/0.3996, allocations: 2.756 MB / 0.5691 GB, free: 11.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.42, allocations: 7.938 kB / 0.5691 GB, free: 11.1 MB / 414.1 MB " [Timeout remaining time 648] (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 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.440081045031548]