Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001571/0.001571, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001844/0.001844, allocations: 211.5 kB / 23.73 MB, free: 4.523 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.544/1.544, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2246/0.2246, allocations: 46.96 MB / 360.9 MB, free: 4.047 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 67.88 kB / 0.4961 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3467, allocations: 66.04 MB / 0.5606 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003114/0.3499, allocations: 1.624 MB / 0.5622 GB, free: 2.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.351, allocations: 0.5561 MB / 0.5627 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.041e-05/0.351, allocations: 0 / 0.5627 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.3512, allocations: 15.88 kB / 0.5627 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.232e-05/0.3512, allocations: 15.8 kB / 0.5627 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003514/0.3516, allocations: 91.7 kB / 0.5628 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.3518, allocations: 115.7 kB / 0.5629 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.3519, allocations: 31.95 kB / 0.563 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.444e-05/0.352, allocations: 47.84 kB / 0.563 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.907e-05/0.352, allocations: 39.77 kB / 0.563 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.3521, allocations: 8 kB / 0.5631 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.513e-05/0.3521, allocations: 8 kB / 0.5631 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.617e-05/0.3521, allocations: 23.92 kB / 0.5631 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.992e-05/0.3522, allocations: 27.86 kB / 0.5631 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001608/0.3523, allocations: 99.5 kB / 0.5632 GB, free: 1.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3523, allocations: 0 / 0.5632 GB, free: 1.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3523, allocations: 0 / 0.5632 GB, free: 1.449 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.3523, allocations: 0 / 0.5632 GB, free: 1.449 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.000647/0.353, allocations: 358.7 kB / 0.5636 GB, free: 1.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.353, allocations: 8.031 kB / 0.5636 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.763e-05/0.3531, allocations: 42.73 kB / 0.5636 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.515e-05/0.3531, allocations: 8.891 kB / 0.5636 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.3534, allocations: 157.2 kB / 0.5638 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.3534, allocations: 8.375 kB / 0.5638 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.3534, allocations: 8.375 kB / 0.5638 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.3537, allocations: 101.8 kB / 0.5639 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.3537, allocations: 0 / 0.5639 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.3537, allocations: 4 kB / 0.5639 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3538, allocations: 3.938 kB / 0.5639 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.3539, allocations: 51.95 kB / 0.5639 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006701/0.3546, allocations: 335.6 kB / 0.5642 GB, free: 280 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003583/0.355, allocations: 106.5 kB / 0.5643 GB, free: 164 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.3551, allocations: 28.89 kB / 0.5644 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.3551, allocations: 7.938 kB / 0.5644 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002683/0.3554, allocations: 95.36 kB / 0.5645 GB, free: 16 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.3554, allocations: 0 / 0.5645 GB, free: 16 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000506/0.3559, allocations: 145.5 kB / 0.5646 GB, free: 15.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.3559, allocations: 51.41 kB / 0.5647 GB, free: 15.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.3561, allocations: 151.5 kB / 0.5648 GB, free: 15.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.3561, allocations: 29.7 kB / 0.5648 GB, free: 15.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.859e-05/0.3562, allocations: 108 kB / 0.5649 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.507e-05/0.3562, allocations: 23.94 kB / 0.565 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.106e-05/0.3563, allocations: 29.7 kB / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3564, allocations: 318.8 kB / 0.5653 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.3565, allocations: 35.97 kB / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.3567, allocations: 49.69 kB / 0.5654 GB, free: 15.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/0.3569, allocations: 77.62 kB / 0.5655 GB, free: 14.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3569, allocations: 3.984 kB / 0.5655 GB, free: 14.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002997/0.3572, allocations: 117.8 kB / 0.5656 GB, free: 14.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.3572, allocations: 7.938 kB / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3572, allocations: 96 / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.3572, allocations: 11.88 kB / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.3573, allocations: 23.97 kB / 0.5656 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.3574, allocations: 0 / 0.5656 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.452e-05/0.3574, allocations: 11.98 kB / 0.5656 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.3575, allocations: 4 kB / 0.5656 GB, free: 14.77 MB / 414.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.0001054/0.3576, allocations: 121.8 kB / 0.5657 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.572e-05/0.3576, allocations: 19.84 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.659e-05/0.3576, allocations: 16.7 kB / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3576, allocations: 0 / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3576, allocations: 0 / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3576, allocations: 0 / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005732/0.3582, allocations: 345.6 kB / 0.5661 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3582, allocations: 8 kB / 0.5661 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.574e-05/0.3583, allocations: 23.92 kB / 0.5661 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3583, allocations: 0 / 0.5661 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.3583, allocations: 0 / 0.5661 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3583, allocations: 0 / 0.5661 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3583, allocations: 0 / 0.5661 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004775/0.3588, allocations: 255.7 kB / 0.5664 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.417e-05/0.3588, allocations: 15.92 kB / 0.5664 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.3589, allocations: 0 / 0.5664 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.359, allocations: 19.98 kB / 0.5664 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.143e-05/0.359, allocations: 11.97 kB / 0.5664 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.3591, allocations: 4 kB / 0.5664 GB, free: 13.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.885e-05/0.3591, allocations: 117.8 kB / 0.5665 GB, free: 13.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3591, allocations: 4 kB / 0.5665 GB, free: 13.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002332/0.3594, allocations: 15.94 kB / 0.5666 GB, free: 13.73 MB / 414.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.0007569/0.3601, allocations: 0.7709 MB / 0.5673 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002918/0.3604, allocations: 87.94 kB / 0.5674 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3604, allocations: 0 / 0.5674 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.3606, allocations: 39.98 kB / 0.5674 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.3609, allocations: 18.86 kB / 0.5675 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.3636, allocations: 1.705 MB / 0.5691 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.571e-05/0.3636, allocations: 93.25 kB / 0.5692 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.775e-05/0.3637, allocations: 8.484 kB / 0.5692 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.568e-05/0.3638, allocations: 27.44 kB / 0.5692 GB, free: 10.85 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3638, allocations: 0 / 0.5692 GB, free: 10.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03045/0.3942, allocations: 3.255 MB / 0.5724 GB, free: 7.727 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.42, allocations: 11.81 kB / 0.5724 GB, free: 7.715 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.365573580987984]