Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.00172/0.00172, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002089/0.002089, allocations: 210.7 kB / 23.74 MB, free: 4.672 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.623/1.623, allocations: 230.6 MB / 257.5 MB, free: 8 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.2518/0.2518, allocations: 46.94 MB / 360.8 MB, free: 4.27 MB / 286.1 MB " [Timeout remaining time 179] 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: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002348/0.002348, allocations: 71.89 kB / 0.4966 GB, free: 7.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3777, allocations: 66.04 MB / 0.5611 GB, free: 4.406 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002594/0.3803, allocations: 0.8318 MB / 0.5619 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002467/0.3806, allocations: 43.88 kB / 0.562 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.905e-05/0.3806, allocations: 7.938 kB / 0.562 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.3808, allocations: 3.938 kB / 0.562 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.159e-05/0.3808, allocations: 3.938 kB / 0.562 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001661/0.381, allocations: 19.98 kB / 0.562 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.3811, allocations: 47.78 kB / 0.562 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.3812, allocations: 11.66 kB / 0.5621 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.982e-05/0.3813, allocations: 15.92 kB / 0.5621 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.396e-05/0.3813, allocations: 19.92 kB / 0.5621 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.3813, allocations: 0 / 0.5621 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.3e-05/0.3814, allocations: 4 kB / 0.5621 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.463e-05/0.3814, allocations: 11.98 kB / 0.5621 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.534e-05/0.3815, allocations: 11.88 kB / 0.5621 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.3816, allocations: 43.81 kB / 0.5622 GB, free: 3.336 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3816, allocations: 0 / 0.5622 GB, free: 3.336 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3816, allocations: 0 / 0.5622 GB, free: 3.336 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.3816, allocations: 0 / 0.5622 GB, free: 3.336 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.0005551/0.3822, allocations: 285.8 kB / 0.5624 GB, free: 3.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.3822, allocations: 8.031 kB / 0.5624 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.3822, allocations: 8.891 kB / 0.5624 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002448/0.3825, allocations: 122.5 kB / 0.5626 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.3825, allocations: 384 / 0.5626 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.3825, allocations: 8.375 kB / 0.5626 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.3827, allocations: 46.25 kB / 0.5626 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3827, allocations: 192 / 0.5626 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.3827, allocations: 11.92 kB / 0.5626 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.3827, allocations: 4 kB / 0.5626 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.687e-05/0.3827, allocations: 15.98 kB / 0.5626 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005523/0.3833, allocations: 263.7 kB / 0.5629 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.407e-05/0.3834, allocations: 22.58 kB / 0.5629 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.539e-05/0.3834, allocations: 8.859 kB / 0.5629 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.303e-06/0.3834, allocations: 0 / 0.5629 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.065e-05/0.3835, allocations: 63.36 kB / 0.563 GB, free: 2.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.3835, allocations: 0 / 0.563 GB, free: 2.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001753/0.3837, allocations: 45.69 kB / 0.563 GB, free: 2.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.3837, allocations: 55.41 kB / 0.5631 GB, free: 2.238 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.3838, allocations: 117.8 kB / 0.5632 GB, free: 2.113 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.3838, allocations: 26.08 kB / 0.5632 GB, free: 2.082 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.466e-05/0.3839, allocations: 92.09 kB / 0.5633 GB, free: 1.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.3839, allocations: 7.953 kB / 0.5633 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-05/0.384, allocations: 21.7 kB / 0.5633 GB, free: 1.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3841, allocations: 330.7 kB / 0.5637 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.608e-05/0.3841, allocations: 0 / 0.5637 GB, free: 1.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.217e-05/0.3842, allocations: 29.64 kB / 0.5637 GB, free: 1.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.486e-05/0.3842, allocations: 21.72 kB / 0.5637 GB, free: 1.559 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3842, allocations: 0 / 0.5637 GB, free: 1.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.74e-05/0.3843, allocations: 57.62 kB / 0.5638 GB, free: 1.496 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.3843, allocations: 4 kB / 0.5638 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.3843, allocations: 0 / 0.5638 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3843, allocations: 0 / 0.5638 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.135e-05/0.3844, allocations: 4 kB / 0.5638 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3844, allocations: 0 / 0.5638 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.37e-05/0.3844, allocations: 11.95 kB / 0.5638 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.3844, allocations: 3.938 kB / 0.5638 GB, free: 1.473 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.463e-05/0.3845, allocations: 109.8 kB / 0.5639 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-06/0.3845, allocations: 4.031 kB / 0.5639 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.326e-05/0.3846, allocations: 15.98 kB / 0.5639 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.3846, allocations: 0 / 0.5639 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.3846, allocations: 7.938 kB / 0.5639 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3846, allocations: 0 / 0.5639 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003227/0.3849, allocations: 269.9 kB / 0.5642 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3849, allocations: 48 / 0.5642 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.318e-05/0.3849, allocations: 7.969 kB / 0.5642 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.3849, allocations: 4 kB / 0.5642 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.385, allocations: 4 kB / 0.5642 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.385, allocations: 3.938 kB / 0.5642 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.385, allocations: 0 / 0.5642 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001637/0.3851, allocations: 147.5 kB / 0.5643 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.507e-05/0.3851, allocations: 11.98 kB / 0.5643 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.3851, allocations: 0 / 0.5643 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.241e-05/0.3852, allocations: 7.922 kB / 0.5643 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.146e-05/0.3852, allocations: 0 / 0.5643 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.3852, allocations: 8.062 kB / 0.5644 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.411e-05/0.3853, allocations: 91.27 kB / 0.5644 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3853, allocations: 288 / 0.5644 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002203/0.3855, allocations: 4 kB / 0.5644 GB, free: 0.707 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 9.414e-05/0.3856, allocations: 95.25 kB / 0.5645 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000102/0.3857, allocations: 27.86 kB / 0.5646 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3857, allocations: 0 / 0.5646 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.687e-05/0.3858, allocations: 7.938 kB / 0.5646 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.386, allocations: 14.73 kB / 0.5646 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003366/0.3864, allocations: 141.5 kB / 0.5647 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.3867, allocations: 0.6807 MB / 0.5654 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.246e-05/0.3868, allocations: 7.984 kB / 0.5654 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.585e-05/0.3868, allocations: 7.438 kB / 0.5654 GB, free: 15.67 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3868, allocations: 0 / 0.5654 GB, free: 15.67 MB / 414.1 MB Notification: Performance of Templates: time 0.0032/0.39, allocations: 0.5278 MB / 0.5659 GB, free: 15.14 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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.543475897051394]