Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001405/0.001405, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001747/0.001747, allocations: 210.8 kB / 24.48 MB, free: 3.934 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.459/1.459, allocations: 230.5 MB / 258.1 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2208/0.2208, allocations: 46.95 MB / 361.6 MB, free: 3.879 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002434/0.002434, allocations: 79.86 kB / 0.4974 GB, free: 7.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4042/0.4066, allocations: 66.08 MB / 0.5619 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002125/0.4087, allocations: 0.8124 MB / 0.5627 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002119/0.4089, allocations: 47.77 kB / 0.5627 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.717e-05/0.409, allocations: 0 / 0.5627 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.4091, allocations: 3.938 kB / 0.5627 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.784e-05/0.4091, allocations: 3.938 kB / 0.5627 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001129/0.4092, allocations: 23.98 kB / 0.5628 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001083/0.4093, allocations: 39.91 kB / 0.5628 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.327e-05/0.4094, allocations: 15.66 kB / 0.5628 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.599e-05/0.4095, allocations: 11.92 kB / 0.5628 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.328e-05/0.4095, allocations: 15.92 kB / 0.5628 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.428e-05/0.4095, allocations: 4 kB / 0.5628 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.11e-05/0.4095, allocations: 4 kB / 0.5629 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.263e-05/0.4096, allocations: 11.92 kB / 0.5629 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.242e-05/0.4096, allocations: 11.94 kB / 0.5629 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.4097, allocations: 39.77 kB / 0.5629 GB, free: 2.898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.4097, allocations: 0 / 0.5629 GB, free: 2.898 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4097, allocations: 4 kB / 0.5629 GB, free: 2.895 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.4097, allocations: 0 / 0.5629 GB, free: 2.895 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.0004299/0.4101, allocations: 289.8 kB / 0.5632 GB, free: 2.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.4102, allocations: 8.031 kB / 0.5632 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.77e-05/0.4102, allocations: 8.891 kB / 0.5632 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002029/0.4104, allocations: 114.5 kB / 0.5633 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.4104, allocations: 4.375 kB / 0.5633 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.4104, allocations: 4.375 kB / 0.5633 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001066/0.4105, allocations: 46.25 kB / 0.5634 GB, free: 2.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.4106, allocations: 4.188 kB / 0.5634 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.4106, allocations: 7.938 kB / 0.5634 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.4106, allocations: 3.938 kB / 0.5634 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.409e-05/0.4106, allocations: 15.98 kB / 0.5634 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004446/0.4111, allocations: 224.5 kB / 0.5636 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.199e-05/0.4111, allocations: 26.52 kB / 0.5636 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.423e-05/0.4111, allocations: 4.859 kB / 0.5636 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.77e-06/0.4112, allocations: 4.062 kB / 0.5636 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.598e-05/0.4112, allocations: 51.41 kB / 0.5637 GB, free: 1.977 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.4112, allocations: 4 kB / 0.5637 GB, free: 1.973 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001433/0.4114, allocations: 57.58 kB / 0.5638 GB, free: 1.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.4114, allocations: 55.34 kB / 0.5638 GB, free: 1.844 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.794e-05/0.4115, allocations: 109.8 kB / 0.5639 GB, free: 1.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.4115, allocations: 25.7 kB / 0.5639 GB, free: 1.695 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.217e-05/0.4116, allocations: 100.1 kB / 0.564 GB, free: 1.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.4116, allocations: 7.938 kB / 0.564 GB, free: 1.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/0.4117, allocations: 17.72 kB / 0.5641 GB, free: 1.562 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.4118, allocations: 322.7 kB / 0.5644 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.211e-05/0.4118, allocations: 12 kB / 0.5644 GB, free: 1.227 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.081e-05/0.4119, allocations: 21.7 kB / 0.5644 GB, free: 1.199 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.105e-05/0.4119, allocations: 26 kB / 0.5644 GB, free: 1.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.4119, allocations: 3.938 kB / 0.5644 GB, free: 1.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.438e-05/0.412, allocations: 53.67 kB / 0.5645 GB, free: 1.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.412, allocations: 4 kB / 0.5645 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.412, allocations: 0 / 0.5645 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.412, allocations: 4 kB / 0.5645 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.883e-05/0.4121, allocations: 4 kB / 0.5645 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.4121, allocations: 3.938 kB / 0.5645 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.691e-05/0.4121, allocations: 4 kB / 0.5645 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.4121, allocations: 12.02 kB / 0.5645 GB, free: 1.074 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.268e-05/0.4122, allocations: 109.8 kB / 0.5646 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.24e-05/0.4122, allocations: 7.953 kB / 0.5646 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.58e-05/0.4122, allocations: 8 kB / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.4122, allocations: 0 / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.4122, allocations: 0 / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.4122, allocations: 0 / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000275/0.4125, allocations: 246.2 kB / 0.5649 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.4125, allocations: 3.938 kB / 0.5649 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.202e-05/0.4125, allocations: 4 kB / 0.5649 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.4125, allocations: 4 kB / 0.5649 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.4125, allocations: 0 / 0.5649 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4125, allocations: 0 / 0.5649 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.4126, allocations: 0 / 0.5649 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001618/0.4127, allocations: 155.4 kB / 0.565 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.718e-06/0.4127, allocations: 4.031 kB / 0.565 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.4127, allocations: 0 / 0.565 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.409e-05/0.4128, allocations: 0 / 0.565 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.31e-05/0.4128, allocations: 4 kB / 0.565 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.4128, allocations: 3.938 kB / 0.565 GB, free: 476 kB / 398.1 MB Notification: Performance of sorting global known variables: time 5.793e-05/0.4129, allocations: 87.27 kB / 0.5651 GB, free: 388 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4129, allocations: 4.062 kB / 0.5651 GB, free: 384 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002222/0.4131, allocations: 11.94 kB / 0.5651 GB, free: 372 kB / 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 8.498e-05/0.4132, allocations: 99.12 kB / 0.5652 GB, free: 264 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.974e-05/0.4133, allocations: 23.92 kB / 0.5653 GB, free: 240 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4133, allocations: 0 / 0.5653 GB, free: 240 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.89e-05/0.4133, allocations: 8 kB / 0.5653 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.4135, allocations: 14.52 kB / 0.5653 GB, free: 220 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003246/0.4139, allocations: 159.2 kB / 0.5654 GB, free: 28 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.575e-05/0.4139, allocations: 75.39 kB / 0.5655 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.167e-05/0.414, allocations: 7.438 kB / 0.5655 GB, free: 15.93 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.414, allocations: 0 / 0.5655 GB, free: 15.93 MB / 414.1 MB Notification: Performance of Templates: time 0.002238/0.4162, allocations: 0.7078 MB / 0.5662 GB, free: 15.22 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 7.615033288020641]