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.001762/0.001762, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002117/0.002117, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.406/1.406, allocations: 230.6 MB / 257.5 MB, free: 8.035 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.2289/0.2289, allocations: 46.94 MB / 360.9 MB, free: 4.363 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.001962/0.001962, allocations: 71.91 kB / 0.4962 GB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3621, allocations: 66.03 MB / 0.5606 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002982/0.3651, allocations: 1.652 MB / 0.5623 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.3662, allocations: 0.5988 MB / 0.5628 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.135e-05/0.3663, allocations: 7.938 kB / 0.5628 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.3664, allocations: 15.86 kB / 0.5629 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.326e-05/0.3664, allocations: 11.86 kB / 0.5629 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003761/0.3668, allocations: 87.83 kB / 0.563 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002145/0.367, allocations: 115.7 kB / 0.5631 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.3672, allocations: 23.97 kB / 0.5631 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.862e-05/0.3673, allocations: 51.86 kB / 0.5631 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.679e-05/0.3674, allocations: 43.81 kB / 0.5632 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.266e-05/0.3674, allocations: 8 kB / 0.5632 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.78e-05/0.3674, allocations: 8 kB / 0.5632 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.343e-05/0.3674, allocations: 19.86 kB / 0.5632 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.752e-05/0.3675, allocations: 43.73 kB / 0.5633 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.3677, allocations: 87.58 kB / 0.5633 GB, free: 1.703 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3677, allocations: 0 / 0.5633 GB, free: 1.703 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3677, allocations: 0 / 0.5633 GB, free: 1.703 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.3677, allocations: 0 / 0.5633 GB, free: 1.703 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.0007132/0.3684, allocations: 354.8 kB / 0.5637 GB, free: 1.324 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3684, allocations: 8.031 kB / 0.5637 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.3685, allocations: 42.73 kB / 0.5637 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.3685, allocations: 12.83 kB / 0.5637 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003402/0.3689, allocations: 150.3 kB / 0.5639 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.3689, allocations: 8.375 kB / 0.5639 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.678e-05/0.3689, allocations: 8.375 kB / 0.5639 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.3692, allocations: 101.8 kB / 0.564 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3692, allocations: 0 / 0.564 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.3692, allocations: 4 kB / 0.564 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3692, allocations: 0 / 0.564 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.3694, allocations: 55.95 kB / 0.5641 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000728/0.3701, allocations: 367.5 kB / 0.5644 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003431/0.3705, allocations: 102.5 kB / 0.5645 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.3706, allocations: 28.89 kB / 0.5645 GB, free: 368 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.3706, allocations: 4 kB / 0.5645 GB, free: 364 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.3709, allocations: 103.3 kB / 0.5646 GB, free: 248 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.854e-06/0.3709, allocations: 0 / 0.5646 GB, free: 248 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004694/0.3713, allocations: 145.5 kB / 0.5648 GB, free: 96 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.3714, allocations: 51.41 kB / 0.5648 GB, free: 32 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.3716, allocations: 147.6 kB / 0.565 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.3716, allocations: 37.64 kB / 0.565 GB, free: 15.83 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.644e-05/0.3717, allocations: 104 kB / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/0.3717, allocations: 23.94 kB / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.3717, allocations: 25.7 kB / 0.5651 GB, free: 15.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3719, allocations: 326.8 kB / 0.5655 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.372, allocations: 31.98 kB / 0.5655 GB, free: 15.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.3722, allocations: 49.69 kB / 0.5655 GB, free: 15.26 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002155/0.3724, allocations: 81.61 kB / 0.5656 GB, free: 15.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3724, allocations: 192 / 0.5656 GB, free: 15.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002901/0.3727, allocations: 121.5 kB / 0.5657 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3727, allocations: 7.938 kB / 0.5657 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3727, allocations: 4 kB / 0.5657 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.3727, allocations: 0 / 0.5657 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.3728, allocations: 19.98 kB / 0.5658 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3728, allocations: 0 / 0.5658 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.214e-05/0.3729, allocations: 19.98 kB / 0.5658 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.3729, allocations: 3.938 kB / 0.5658 GB, free: 15 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.0001013/0.373, allocations: 117.8 kB / 0.5659 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.373, allocations: 19.84 kB / 0.5659 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.368e-05/0.3731, allocations: 16.7 kB / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.3731, allocations: 0 / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3731, allocations: 4 kB / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3731, allocations: 0 / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005397/0.3736, allocations: 365.5 kB / 0.5663 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3736, allocations: 0 / 0.5663 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.329e-05/0.3737, allocations: 11.98 kB / 0.5663 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3737, allocations: 0 / 0.5663 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.3737, allocations: 0 / 0.5663 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3737, allocations: 0 / 0.5663 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.3737, allocations: 4 kB / 0.5663 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004545/0.3742, allocations: 247.4 kB / 0.5665 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.374e-05/0.3742, allocations: 15.94 kB / 0.5665 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.3743, allocations: 3.938 kB / 0.5665 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.3744, allocations: 20.05 kB / 0.5666 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.033e-05/0.3744, allocations: 19.91 kB / 0.5666 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.3745, allocations: 4 kB / 0.5666 GB, free: 14.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.929e-05/0.3745, allocations: 114.2 kB / 0.5667 GB, free: 13.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3745, allocations: 0 / 0.5667 GB, free: 13.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002324/0.3748, allocations: 19.94 kB / 0.5667 GB, free: 13.95 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.0007612/0.3755, allocations: 0.7788 MB / 0.5675 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002911/0.3758, allocations: 83.95 kB / 0.5676 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3758, allocations: 288 / 0.5676 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.376, allocations: 39.91 kB / 0.5676 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.3763, allocations: 27.59 kB / 0.5676 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/0.3789, allocations: 1.698 MB / 0.5693 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.3792, allocations: 0.6962 MB / 0.57 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.839e-05/0.3793, allocations: 8.484 kB / 0.57 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.916e-05/0.3793, allocations: 39.41 kB / 0.57 GB, free: 10.45 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3793, allocations: 3.938 kB / 0.57 GB, free: 10.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03079/0.4101, allocations: 2.767 MB / 0.5727 GB, free: 7.805 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.29, allocations: 7.938 kB / 0.5727 GB, free: 7.797 MB / 414.1 MB " [Timeout remaining time 649] (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.15312568587251]