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.001721/0.001721, allocations: 112.4 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.002107/0.002107, allocations: 204.1 kB / 24.46 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.599/1.599, 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.2238/0.2238, allocations: 46.89 MB / 361.1 MB, free: 4.648 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.00236/0.00236, allocations: 80.19 kB / 0.4967 GB, free: 7.848 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2824, allocations: 65.99 MB / 0.5612 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002063/0.2845, allocations: 0.8201 MB / 0.562 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001974/0.2847, allocations: 47.81 kB / 0.562 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.898e-05/0.2847, allocations: 4 kB / 0.562 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.2848, allocations: 11.86 kB / 0.562 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.612e-05/0.2849, allocations: 3.938 kB / 0.5621 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001319/0.285, allocations: 23.92 kB / 0.5621 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.2851, allocations: 27.98 kB / 0.5621 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.511e-05/0.2852, allocations: 18.8 kB / 0.5621 GB, free: 4.098 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.807e-05/0.2852, allocations: 15.92 kB / 0.5621 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.112e-05/0.2853, allocations: 11.92 kB / 0.5621 GB, free: 4.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.2853, allocations: 8 kB / 0.5622 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.032e-05/0.2853, allocations: 4 kB / 0.5622 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.888e-05/0.2853, allocations: 7.938 kB / 0.5622 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.149e-05/0.2853, allocations: 15.92 kB / 0.5622 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.864e-05/0.2854, allocations: 39.77 kB / 0.5622 GB, free: 3.996 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2854, allocations: 0 / 0.5622 GB, free: 3.996 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2854, allocations: 0 / 0.5622 GB, free: 3.996 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.2854, allocations: 0 / 0.5622 GB, free: 3.996 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.0004693/0.2859, allocations: 360.1 kB / 0.5626 GB, free: 3.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.2859, allocations: 16.03 kB / 0.5626 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.402e-05/0.286, allocations: 4.891 kB / 0.5626 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.2862, allocations: 180.4 kB / 0.5628 GB, free: 3.355 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.2862, allocations: 4.375 kB / 0.5628 GB, free: 3.352 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.2862, allocations: 4.375 kB / 0.5628 GB, free: 3.348 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.2863, allocations: 50.19 kB / 0.5628 GB, free: 3.293 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.2864, allocations: 192 / 0.5628 GB, free: 3.293 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.2864, allocations: 7.938 kB / 0.5628 GB, free: 3.285 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.2864, allocations: 4 kB / 0.5628 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.471e-05/0.2864, allocations: 16 kB / 0.5628 GB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004988/0.2869, allocations: 296.7 kB / 0.5631 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.198e-05/0.287, allocations: 18.58 kB / 0.5631 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.416e-05/0.287, allocations: 20.91 kB / 0.5632 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.397e-06/0.287, allocations: 3.938 kB / 0.5632 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.601e-05/0.2871, allocations: 63.3 kB / 0.5632 GB, free: 2.797 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.2871, allocations: 0 / 0.5632 GB, free: 2.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001286/0.2872, allocations: 45.64 kB / 0.5633 GB, free: 2.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.2873, allocations: 55.39 kB / 0.5633 GB, free: 2.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.2874, allocations: 117.8 kB / 0.5634 GB, free: 2.555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.2874, allocations: 25.7 kB / 0.5635 GB, free: 2.523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.645e-05/0.2874, allocations: 92.03 kB / 0.5635 GB, free: 2.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.287e-05/0.2874, allocations: 7.953 kB / 0.5635 GB, free: 2.422 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.726e-05/0.2875, allocations: 25.7 kB / 0.5636 GB, free: 2.391 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.2876, allocations: 318.8 kB / 0.5639 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.679e-05/0.2877, allocations: 4 kB / 0.5639 GB, free: 2.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.903e-05/0.2877, allocations: 21.7 kB / 0.5639 GB, free: 2.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.24e-05/0.2877, allocations: 25.66 kB / 0.5639 GB, free: 2.008 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2877, allocations: 0 / 0.5639 GB, free: 2.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.646e-05/0.2878, allocations: 53.69 kB / 0.564 GB, free: 1.949 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.2878, allocations: 7.938 kB / 0.564 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.2878, allocations: 0 / 0.564 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.2878, allocations: 4 kB / 0.564 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.145e-05/0.2879, allocations: 4 kB / 0.564 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.2879, allocations: 0 / 0.564 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.121e-05/0.2879, allocations: 7.953 kB / 0.564 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.2879, allocations: 7.938 kB / 0.564 GB, free: 1.918 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 8.802e-05/0.288, allocations: 109.8 kB / 0.5641 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.135e-05/0.288, allocations: 8.031 kB / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.085e-05/0.288, allocations: 7.906 kB / 0.5641 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.288, allocations: 0 / 0.5641 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.288, allocations: 0 / 0.5641 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.288, allocations: 4 kB / 0.5641 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003179/0.2884, allocations: 302.4 kB / 0.5644 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2884, allocations: 0 / 0.5644 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.035e-05/0.2884, allocations: 4 kB / 0.5644 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2884, allocations: 384 / 0.5644 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.862e-06/0.2884, allocations: 384 / 0.5644 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.2884, allocations: 7.938 kB / 0.5644 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2884, allocations: 3.938 kB / 0.5644 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001522/0.2886, allocations: 151.5 kB / 0.5646 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.114e-05/0.2886, allocations: 93.02 kB / 0.5647 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.2887, allocations: 4 kB / 0.5647 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.871e-05/0.2887, allocations: 3.938 kB / 0.5647 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.666e-05/0.2887, allocations: 4 kB / 0.5647 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.2887, allocations: 8.062 kB / 0.5647 GB, free: 1.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.962e-05/0.2888, allocations: 91.27 kB / 0.5648 GB, free: 1.031 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2888, allocations: 0 / 0.5648 GB, free: 1.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002225/0.289, allocations: 4 kB / 0.5648 GB, free: 1.027 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.0001042/0.2891, allocations: 99.25 kB / 0.5649 GB, free: 0.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.245e-05/0.2892, allocations: 11.98 kB / 0.5649 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2892, allocations: 0 / 0.5649 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.077e-05/0.2892, allocations: 15.94 kB / 0.5649 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.2895, allocations: 16.05 kB / 0.5649 GB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002926/0.2898, allocations: 137.4 kB / 0.565 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.2901, allocations: 0.687 MB / 0.5657 GB, free: 4 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.899e-05/0.2901, allocations: 4 kB / 0.5657 GB, free: 0 / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.995e-05/0.2902, allocations: 7.438 kB / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2902, allocations: 0 / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of Templates: time 0.002824/0.293, allocations: 0.5123 MB / 0.5662 GB, free: 15.48 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 gbode -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: 4.975304298102856]