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.002214/0.002214, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002144/0.002144, allocations: 161.3 kB / 24.28 MB, free: 152 kB / 18.57 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.792/1.792, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 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.5881/0.5881, allocations: 34.26 MB / 295.3 MB, free: 0.6797 MB / 266.7 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 2.205e-06/2.205e-06, allocations: 0 / 377.3 MB, free: 2.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.805e-05/4.026e-05, allocations: 2.312 kB / 377.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002614/0.002654, allocations: 0.8177 MB / 378.1 MB, free: 2.156 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002861/0.00294, allocations: 51.83 kB / 378.1 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.508e-05/0.003015, allocations: 0 / 378.1 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.003169, allocations: 11.86 kB / 378.2 MB, free: 2.094 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.834e-05/0.003188, allocations: 0 / 378.2 MB, free: 2.094 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001358/0.003323, allocations: 15.98 kB / 378.2 MB, free: 2.078 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001305/0.003454, allocations: 39.86 kB / 378.2 MB, free: 2.039 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.003573, allocations: 11.98 kB / 378.2 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.891e-05/0.003642, allocations: 15.97 kB / 378.2 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.812e-05/0.00369, allocations: 11.94 kB / 378.3 MB, free: 2 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.003712, allocations: 4 kB / 378.3 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.366e-05/0.003726, allocations: 4 kB / 378.3 MB, free: 1.992 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.554e-05/0.003752, allocations: 7.984 kB / 378.3 MB, free: 1.984 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.803e-05/0.00379, allocations: 11.94 kB / 378.3 MB, free: 1.973 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.003948, allocations: 39.81 kB / 378.3 MB, free: 1.934 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.00395, allocations: 3.938 kB / 378.3 MB, free: 1.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.003951, allocations: 0 / 378.3 MB, free: 1.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.003956, allocations: 0 / 378.3 MB, free: 1.93 MB / 346.7 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.0007209/0.004677, allocations: 387.9 kB / 378.7 MB, free: 1.508 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/0.004733, allocations: 8.031 kB / 378.7 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.891e-05/0.004812, allocations: 8.891 kB / 378.7 MB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.00506, allocations: 136.5 kB / 378.9 MB, free: 1.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.005072, allocations: 384 / 378.9 MB, free: 1.332 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.005098, allocations: 4.375 kB / 378.9 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.005251, allocations: 54.19 kB / 378.9 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.00526, allocations: 192 / 378.9 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.005272, allocations: 384 / 378.9 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.005278, allocations: 384 / 378.9 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.063e-05/0.005338, allocations: 23.91 kB / 378.9 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007326/0.006071, allocations: 291.6 kB / 379.2 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.519e-05/0.006166, allocations: 31.06 kB / 379.2 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/0.006199, allocations: 19.69 kB / 379.3 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.155e-06/0.006207, allocations: 0 / 379.3 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001098/0.006317, allocations: 57.06 kB / 379.3 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.006318, allocations: 0 / 379.3 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002036/0.006521, allocations: 53.62 kB / 379.4 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.006584, allocations: 51.41 kB / 379.4 MB, free: 0.668 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.006773, allocations: 173.9 kB / 379.6 MB, free: 492 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.006803, allocations: 29.7 kB / 379.6 MB, free: 456 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.00691, allocations: 138.8 kB / 379.8 MB, free: 312 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.819e-05/0.006938, allocations: 16.02 kB / 379.8 MB, free: 296 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.913e-05/0.006987, allocations: 27.38 kB / 379.8 MB, free: 260 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004455/0.007433, allocations: 496.1 kB / 380.3 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.067e-05/0.007453, allocations: 8 kB / 380.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.092e-05/0.007494, allocations: 23.38 kB / 380.3 MB, free: 15.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.421e-05/0.007558, allocations: 35.31 kB / 380.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.00756, allocations: 0 / 380.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001088/0.007669, allocations: 57.58 kB / 380.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.007685, allocations: 7.938 kB / 380.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.007691, allocations: 0 / 380.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.007708, allocations: 8.031 kB / 380.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.746e-05/0.007746, allocations: 7.938 kB / 380.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.007756, allocations: 3.984 kB / 380.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.638e-05/0.007782, allocations: 0 / 380.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.006e-06/0.00779, allocations: 4 kB / 380.4 MB, free: 15.58 MB / 362.7 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 0.0001453/0.007936, allocations: 156.6 kB / 380.6 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.542e-05/0.007951, allocations: 7.938 kB / 380.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.079e-05/0.007982, allocations: 8 kB / 380.6 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.007984, allocations: 0 / 380.6 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.007988, allocations: 4 kB / 380.6 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.007991, allocations: 0 / 380.6 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003945/0.008386, allocations: 313.6 kB / 380.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.008387, allocations: 0 / 380.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.36e-05/0.00842, allocations: 4 kB / 380.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.008428, allocations: 4 kB / 380.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.008439, allocations: 0 / 380.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.00844, allocations: 0 / 380.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.008441, allocations: 0 / 380.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.008697, allocations: 215.8 kB / 381.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.959e-06/0.008707, allocations: 3.953 kB / 381.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.008721, allocations: 0 / 381.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.661e-05/0.008778, allocations: 8.031 kB / 381.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.154e-05/0.008819, allocations: 3.984 kB / 381.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.008827, allocations: 4 kB / 381.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.192e-05/0.008919, allocations: 127.2 kB / 381.3 MB, free: 14.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008919, allocations: 0 / 381.3 MB, free: 14.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002177/0.009137, allocations: 11.94 kB / 381.3 MB, free: 14.66 MB / 362.7 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.0001329/0.009269, allocations: 91.25 kB / 381.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.009393, allocations: 27.67 kB / 381.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.009394, allocations: 0 / 381.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.978e-05/0.009434, allocations: 15.69 kB / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.009738, allocations: 19.92 kB / 381.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004208/0.01016, allocations: 142.1 kB / 381.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000102/0.01026, allocations: 71.23 kB / 381.7 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.693e-05/0.01029, allocations: 4 kB / 381.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.761e-05/0.01033, allocations: 8.5 kB / 381.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01033, allocations: 0 / 381.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of Templates: time 0.003863/0.01419, allocations: 0.5108 MB / 382.2 MB, free: 13.7 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] 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.582375137950294]