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.001452/0.001452, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001401/0.001401, allocations: 169.6 kB / 24.91 MB, free: 8.793 MB / 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 0.9571/0.9571, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] 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.251/0.251, allocations: 34.27 MB / 296.1 MB, free: 0.7305 MB / 266.7 MB " [Timeout remaining time 180] 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 1.092e-06/1.092e-06, allocations: 0 / 325.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.425e-05/1.534e-05, allocations: 2.312 kB / 325.2 MB, free: 7.738 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001355/0.00137, allocations: 0.8416 MB / 326.1 MB, free: 6.898 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001696/0.001539, allocations: 47.83 kB / 326.1 MB, free: 6.852 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.888e-05/0.001598, allocations: 0 / 326.1 MB, free: 6.852 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.001699, allocations: 3.938 kB / 326.1 MB, free: 6.848 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 1.635e-05/0.001716, allocations: 3.938 kB / 326.1 MB, free: 6.844 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.622e-05/0.001802, allocations: 27.91 kB / 326.1 MB, free: 6.816 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.687e-05/0.001879, allocations: 35.92 kB / 326.2 MB, free: 6.781 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.694e-05/0.001956, allocations: 15.97 kB / 326.2 MB, free: 6.766 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.785e-05/0.001993, allocations: 15.98 kB / 326.2 MB, free: 6.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.711e-05/0.002031, allocations: 11.94 kB / 326.2 MB, free: 6.738 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.002046, allocations: 0 / 326.2 MB, free: 6.738 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.387e-06/0.002055, allocations: 4 kB / 326.2 MB, free: 6.734 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.72e-05/0.002073, allocations: 3.984 kB / 326.2 MB, free: 6.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.742e-05/0.00209, allocations: 12.56 kB / 326.2 MB, free: 6.719 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.008e-05/0.00217, allocations: 35.78 kB / 326.3 MB, free: 6.684 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.002172, allocations: 0 / 326.3 MB, free: 6.684 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.002173, allocations: 4 kB / 326.3 MB, free: 6.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.745e-06/0.002175, allocations: 0 / 326.3 MB, free: 6.68 MB / 298.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.0002568/0.002432, allocations: 246.3 kB / 326.5 MB, free: 6.414 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.002462, allocations: 12.03 kB / 326.5 MB, free: 6.402 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.456e-05/0.002487, allocations: 8.922 kB / 326.5 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.002606, allocations: 121.7 kB / 326.7 MB, free: 6.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.296e-06/0.002614, allocations: 8.375 kB / 326.7 MB, free: 6.242 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.586e-05/0.00263, allocations: 4.375 kB / 326.7 MB, free: 6.238 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.077e-05/0.002691, allocations: 50.17 kB / 326.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.501e-06/0.002696, allocations: 4.188 kB / 326.7 MB, free: 6.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.032e-06/0.002702, allocations: 384 / 326.7 MB, free: 6.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.002706, allocations: 384 / 326.7 MB, free: 6.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.687e-05/0.002723, allocations: 7.938 kB / 326.7 MB, free: 6.172 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002746/0.002998, allocations: 172.2 kB / 326.9 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.976e-05/0.003038, allocations: 22.52 kB / 326.9 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.695e-05/0.003054, allocations: 12.91 kB / 326.9 MB, free: 5.941 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.621e-06/0.00306, allocations: 4 kB / 326.9 MB, free: 5.938 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.41e-05/0.003114, allocations: 47.34 kB / 327 MB, free: 5.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.003115, allocations: 4 kB / 327 MB, free: 5.875 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 8.755e-05/0.003203, allocations: 45.62 kB / 327 MB, free: 5.824 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.003234, allocations: 55.39 kB / 327.1 MB, free: 5.758 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.002e-05/0.003284, allocations: 110.8 kB / 327.2 MB, free: 5.637 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.003296, allocations: 33.69 kB / 327.2 MB, free: 5.598 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.003328, allocations: 88.09 kB / 327.3 MB, free: 5.508 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.21e-05/0.00334, allocations: 3.953 kB / 327.3 MB, free: 5.504 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.311e-05/0.003363, allocations: 21.7 kB / 327.3 MB, free: 5.477 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.705e-05/0.003441, allocations: 322.8 kB / 327.7 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.601e-06/0.003446, allocations: 0 / 327.7 MB, free: 5.152 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.426e-05/0.00346, allocations: 13.72 kB / 327.7 MB, free: 5.133 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.649e-05/0.003487, allocations: 33.62 kB / 327.7 MB, free: 5.094 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.003489, allocations: 0 / 327.7 MB, free: 5.094 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.197e-05/0.003531, allocations: 45.62 kB / 327.7 MB, free: 5.043 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.003541, allocations: 10.12 kB / 327.8 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.299e-06/0.003546, allocations: 0 / 327.8 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.003555, allocations: 4 kB / 327.8 MB, free: 5.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.391e-05/0.003579, allocations: 7.938 kB / 327.8 MB, free: 5.023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.574e-06/0.003582, allocations: 0 / 327.8 MB, free: 5.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.003596, allocations: 0 / 327.8 MB, free: 5.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-06/0.003599, allocations: 8.031 kB / 327.8 MB, free: 5.016 MB / 298.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 4.573e-05/0.003645, allocations: 113.8 kB / 327.9 MB, free: 4.895 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.951e-06/0.003651, allocations: 7.938 kB / 327.9 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.704e-05/0.003668, allocations: 4 kB / 327.9 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.003669, allocations: 0 / 327.9 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.00367, allocations: 0 / 327.9 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.003672, allocations: 0 / 327.9 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000135/0.003807, allocations: 206.7 kB / 328.1 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.003809, allocations: 3.938 kB / 328.1 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.276e-05/0.003822, allocations: 4 kB / 328.1 MB, free: 4.645 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.003824, allocations: 11.98 kB / 328.1 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.003831, allocations: 0 / 328.1 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.003832, allocations: 0 / 328.1 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-07/0.003833, allocations: 0 / 328.1 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.208e-05/0.003905, allocations: 139.9 kB / 328.3 MB, free: 4.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.211e-06/0.003911, allocations: 4.438 kB / 328.3 MB, free: 4.477 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.003921, allocations: 0 / 328.3 MB, free: 4.477 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.737e-05/0.003948, allocations: 11.98 kB / 328.3 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.644e-05/0.003965, allocations: 3.938 kB / 328.3 MB, free: 4.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.003967, allocations: 0 / 328.3 MB, free: 4.461 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.027e-05/0.003977, allocations: 12.84 kB / 328.3 MB, free: 4.445 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003977, allocations: 4.031 kB / 328.3 MB, free: 4.441 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001113/0.004088, allocations: 11.95 kB / 328.3 MB, free: 4.43 MB / 298.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 5.453e-05/0.004143, allocations: 72.42 kB / 328.4 MB, free: 4.352 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 4.304e-05/0.004186, allocations: 20.84 kB / 328.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.004188, allocations: 0 / 328.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.306e-05/0.004201, allocations: 16.78 kB / 328.4 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001166/0.004317, allocations: 18.52 kB / 328.4 MB, free: 4.297 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001836/0.004501, allocations: 137 kB / 328.6 MB, free: 4.137 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.616e-05/0.004527, allocations: 55.36 kB / 328.6 MB, free: 4.062 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.424e-05/0.004541, allocations: 15.98 kB / 328.6 MB, free: 4.047 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.261e-05/0.004574, allocations: 51.38 kB / 328.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of SimCode: time 2.8e-07/0.004574, allocations: 0 / 328.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of Templates: time 0.002012/0.006586, allocations: 0.5497 MB / 329.2 MB, free: 3.445 MB / 298.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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.736069377977401]