Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001396/0.001396, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 209.4 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.545/1.545, allocations: 230.2 MB / 257.8 MB, free: 8.5 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2451/0.2451, allocations: 46.9 MB / 361.1 MB, free: 4.621 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002313/0.002313, allocations: 75.88 kB / 0.4967 GB, free: 7.828 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4096/0.4119, allocations: 65.98 MB / 0.5612 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002293/0.4142, allocations: 0.8356 MB / 0.562 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002129/0.4144, allocations: 43.83 kB / 0.562 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.479e-05/0.4144, allocations: 0 / 0.562 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.4146, allocations: 7.938 kB / 0.562 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.093e-05/0.4146, allocations: 7.922 kB / 0.562 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001609/0.4148, allocations: 19.98 kB / 0.5621 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001324/0.4149, allocations: 43.84 kB / 0.5621 GB, free: 4.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.415, allocations: 18.8 kB / 0.5621 GB, free: 4.055 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.735e-05/0.415, allocations: 7.938 kB / 0.5621 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.718e-05/0.4151, allocations: 15.92 kB / 0.5621 GB, free: 4.031 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/0.4151, allocations: 4 kB / 0.5622 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.777e-06/0.4151, allocations: 0 / 0.5622 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.205e-05/0.4151, allocations: 8 kB / 0.5622 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.156e-05/0.4152, allocations: 27.86 kB / 0.5622 GB, free: 3.992 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001155/0.4153, allocations: 31.83 kB / 0.5622 GB, free: 3.961 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.4153, allocations: 0 / 0.5622 GB, free: 3.961 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4153, allocations: 0 / 0.5622 GB, free: 3.961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.4153, allocations: 0 / 0.5622 GB, free: 3.961 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005097/0.4158, allocations: 368.1 kB / 0.5626 GB, free: 3.547 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.4158, allocations: 8.031 kB / 0.5626 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.4159, allocations: 8.891 kB / 0.5626 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.4161, allocations: 180.4 kB / 0.5628 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.52e-06/0.4161, allocations: 384 / 0.5628 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.53e-05/0.4161, allocations: 12.31 kB / 0.5628 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.4163, allocations: 54.23 kB / 0.5628 GB, free: 3.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.4163, allocations: 192 / 0.5628 GB, free: 3.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.4163, allocations: 3.938 kB / 0.5628 GB, free: 3.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.4163, allocations: 0 / 0.5628 GB, free: 3.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.453e-05/0.4163, allocations: 15.94 kB / 0.5628 GB, free: 3.227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000526/0.4169, allocations: 288.8 kB / 0.5631 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.968e-05/0.4169, allocations: 22.58 kB / 0.5631 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.296e-05/0.4169, allocations: 16.78 kB / 0.5632 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.951e-06/0.4169, allocations: 0 / 0.5632 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.073e-05/0.417, allocations: 51.44 kB / 0.5632 GB, free: 2.781 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.417, allocations: 0 / 0.5632 GB, free: 2.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001441/0.4172, allocations: 45.69 kB / 0.5632 GB, free: 2.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.4172, allocations: 59.41 kB / 0.5633 GB, free: 2.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.4173, allocations: 121.8 kB / 0.5634 GB, free: 2.531 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.4174, allocations: 25.7 kB / 0.5634 GB, free: 2.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.35e-05/0.4174, allocations: 96.03 kB / 0.5635 GB, free: 2.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.192e-05/0.4174, allocations: 7.891 kB / 0.5635 GB, free: 2.395 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.635e-05/0.4175, allocations: 21.7 kB / 0.5636 GB, free: 2.367 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.4176, allocations: 318.8 kB / 0.5639 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.641e-05/0.4176, allocations: 8 kB / 0.5639 GB, free: 2.039 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.791e-05/0.4177, allocations: 25.7 kB / 0.5639 GB, free: 2.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.274e-05/0.4177, allocations: 21.72 kB / 0.5639 GB, free: 1.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.4177, allocations: 4 kB / 0.5639 GB, free: 1.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.592e-05/0.4178, allocations: 53.62 kB / 0.564 GB, free: 1.918 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.4178, allocations: 10.19 kB / 0.564 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.4178, allocations: 0 / 0.564 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.4179, allocations: 368 / 0.564 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.38e-05/0.4179, allocations: 8 kB / 0.564 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.4179, allocations: 0 / 0.564 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.343e-05/0.4179, allocations: 7.953 kB / 0.564 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.385e-06/0.4179, allocations: 3.938 kB / 0.564 GB, free: 1.891 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 9.837e-05/0.418, allocations: 122.1 kB / 0.5641 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.418, allocations: 3.984 kB / 0.5641 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.569e-05/0.4181, allocations: 7.906 kB / 0.5641 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.4181, allocations: 0 / 0.5641 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4181, allocations: 3.938 kB / 0.5641 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.4181, allocations: 4 kB / 0.5641 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003726/0.4184, allocations: 302.6 kB / 0.5644 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4184, allocations: 0 / 0.5644 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.261e-05/0.4185, allocations: 3.938 kB / 0.5644 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.4185, allocations: 0 / 0.5644 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.4185, allocations: 8 kB / 0.5644 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.4185, allocations: 3.938 kB / 0.5644 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4185, allocations: 0 / 0.5644 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/0.4187, allocations: 147.5 kB / 0.5646 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.096e-05/0.4187, allocations: 85.05 kB / 0.5647 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.4188, allocations: 4.031 kB / 0.5647 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.542e-05/0.4188, allocations: 3.938 kB / 0.5647 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.922e-05/0.4189, allocations: 0 / 0.5647 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-06/0.4189, allocations: 0 / 0.5647 GB, free: 1.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.755e-05/0.4189, allocations: 95.27 kB / 0.5648 GB, free: 1.012 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4189, allocations: 0 / 0.5648 GB, free: 1.012 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002164/0.4191, allocations: 8 kB / 0.5648 GB, free: 1.004 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001264/0.4193, allocations: 103.2 kB / 0.5649 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001076/0.4194, allocations: 19.98 kB / 0.5649 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.4194, allocations: 0 / 0.5649 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.751e-05/0.4194, allocations: 4 kB / 0.5649 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.4197, allocations: 15.97 kB / 0.5649 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000398/0.4201, allocations: 145.4 kB / 0.565 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.4205, allocations: 0.6885 MB / 0.5657 GB, free: 15.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.259e-05/0.4205, allocations: 4 kB / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.801e-05/0.4205, allocations: 11.44 kB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4205, allocations: 0 / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of Templates: time 0.003305/0.4238, allocations: 0.5188 MB / 0.5662 GB, free: 15.44 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.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: 5.308191578835249]