Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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.001463/0.001463, allocations: 82.64 kB / 21.44 MB, free: 3.059 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.001586/0.001586, allocations: 166.5 kB / 24.84 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9124/0.9124, allocations: 158.6 MB / 186.7 MB, free: 2.758 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1468/0.1468, allocations: 32.38 MB / 271.5 MB, free: 14.53 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 348.9 MB, free: 9.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.001e-05/2.13e-05, allocations: 13.34 kB / 348.9 MB, free: 9.18 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001843/0.001864, allocations: 1.635 MB / 350.5 MB, free: 7.539 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006742/0.002538, allocations: 0.5072 MB / 351 MB, free: 7.023 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.956e-05/0.002618, allocations: 0 / 351 MB, free: 7.023 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.002734, allocations: 15.86 kB / 351.1 MB, free: 7.008 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.154e-05/0.002775, allocations: 7.875 kB / 351.1 MB, free: 7 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.002925, allocations: 43.83 kB / 351.1 MB, free: 6.957 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.003028, allocations: 79.77 kB / 351.2 MB, free: 6.879 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.739e-05/0.003125, allocations: 28.11 kB / 351.2 MB, free: 6.852 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.73e-05/0.003182, allocations: 43.84 kB / 351.3 MB, free: 6.809 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.559e-05/0.003238, allocations: 27.89 kB / 351.3 MB, free: 6.781 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.003255, allocations: 8 kB / 351.3 MB, free: 6.773 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.218e-06/0.003265, allocations: 4 kB / 351.3 MB, free: 6.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.114e-05/0.003286, allocations: 15.92 kB / 351.3 MB, free: 6.754 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.553e-05/0.003311, allocations: 23.92 kB / 351.3 MB, free: 6.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.402e-05/0.003405, allocations: 51.81 kB / 351.4 MB, free: 6.68 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.003408, allocations: 4 kB / 351.4 MB, free: 6.676 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.003408, allocations: 3.938 kB / 351.4 MB, free: 6.672 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.003413, allocations: 0 / 351.4 MB, free: 6.672 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0003262/0.003739, allocations: 435.9 kB / 351.8 MB, free: 6.207 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.003769, allocations: 8.031 kB / 351.8 MB, free: 6.199 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.321e-05/0.003802, allocations: 16.83 kB / 351.8 MB, free: 6.184 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.003923, allocations: 140.5 kB / 352 MB, free: 6.02 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.003939, allocations: 8.375 kB / 352 MB, free: 6.012 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.537e-05/0.003955, allocations: 8.375 kB / 352 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.911e-05/0.004034, allocations: 74.94 kB / 352.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.004042, allocations: 192 / 352.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-06/0.00405, allocations: 384 / 352.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.004056, allocations: 7.938 kB / 352.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.937e-05/0.004086, allocations: 27.91 kB / 352.1 MB, free: 5.887 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002929/0.004379, allocations: 304.1 kB / 352.4 MB, free: 5.562 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.732e-05/0.004436, allocations: 39.06 kB / 352.4 MB, free: 5.512 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.422e-05/0.00445, allocations: 15.75 kB / 352.5 MB, free: 5.492 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.004458, allocations: 7.984 kB / 352.5 MB, free: 5.484 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.76e-05/0.004535, allocations: 73.03 kB / 352.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 8.62e-07/0.004536, allocations: 0 / 352.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001335/0.00467, allocations: 69.81 kB / 352.6 MB, free: 5.324 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.72e-05/0.004697, allocations: 51.41 kB / 352.7 MB, free: 5.262 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.1e-05/0.004748, allocations: 181.9 kB / 352.8 MB, free: 5.066 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.666e-06/0.004757, allocations: 29.7 kB / 352.9 MB, free: 5.031 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.074e-05/0.004797, allocations: 151 kB / 353 MB, free: 4.879 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.004816, allocations: 19.98 kB / 353 MB, free: 4.859 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.599e-05/0.004852, allocations: 35.34 kB / 353.1 MB, free: 4.816 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.094e-05/0.004893, allocations: 0.4922 MB / 353.6 MB, free: 4.312 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.37e-05/0.004906, allocations: 12 kB / 353.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.264e-05/0.004929, allocations: 46.91 kB / 353.6 MB, free: 4.242 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.553e-05/0.004965, allocations: 43.12 kB / 353.7 MB, free: 4.188 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.004966, allocations: 4 kB / 353.7 MB, free: 4.184 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 7.885e-05/0.005045, allocations: 77.56 kB / 353.7 MB, free: 4.102 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.005058, allocations: 4 kB / 353.7 MB, free: 4.098 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.005064, allocations: 8 kB / 353.7 MB, free: 4.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.005073, allocations: 0 / 353.7 MB, free: 4.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.253e-05/0.005126, allocations: 19.98 kB / 353.8 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.005129, allocations: 0 / 353.8 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.388e-05/0.005163, allocations: 4 kB / 353.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-06/0.005168, allocations: 4 kB / 353.8 MB, free: 4.062 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 5.986e-05/0.005228, allocations: 160.5 kB / 353.9 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.212e-05/0.00524, allocations: 15.94 kB / 353.9 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.286e-05/0.005263, allocations: 8.438 kB / 354 MB, free: 3.875 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.005265, allocations: 0 / 354 MB, free: 3.875 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.005268, allocations: 0 / 354 MB, free: 3.875 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.005272, allocations: 4 kB / 354 MB, free: 3.871 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.005452, allocations: 313.9 kB / 354.3 MB, free: 3.531 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.005453, allocations: 0 / 354.3 MB, free: 3.531 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.93e-05/0.005483, allocations: 7.984 kB / 354.3 MB, free: 3.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.005484, allocations: 0 / 354.3 MB, free: 3.523 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.005491, allocations: 0 / 354.3 MB, free: 3.523 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.005492, allocations: 4 kB / 354.3 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.005493, allocations: 0 / 354.3 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/0.005595, allocations: 231.7 kB / 354.5 MB, free: 3.273 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.588e-06/0.005604, allocations: 7.891 kB / 354.5 MB, free: 3.266 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.005616, allocations: 4 kB / 354.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.068e-05/0.005656, allocations: 0 / 354.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.036e-05/0.005687, allocations: 16.02 kB / 354.5 MB, free: 3.246 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.005691, allocations: 3.984 kB / 354.5 MB, free: 3.242 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.211e-05/0.005713, allocations: 131.1 kB / 354.7 MB, free: 3.113 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005713, allocations: 0 / 354.7 MB, free: 3.113 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001541/0.005867, allocations: 23.92 kB / 354.7 MB, free: 3.09 MB / 282.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: 5 (integrator.reset,$whenCondition2,$whenCondition1,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 6.436e-05/0.005931, allocations: 96.02 kB / 354.8 MB, free: 2.984 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.14e-05/0.006013, allocations: 39.59 kB / 354.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.006016, allocations: 0 / 354.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.122e-05/0.006047, allocations: 27.61 kB / 354.8 MB, free: 2.91 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.006265, allocations: 26.39 kB / 354.9 MB, free: 2.887 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002719/0.006537, allocations: 205.9 kB / 355.1 MB, free: 2.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.065e-05/0.006557, allocations: 60.05 kB / 355.1 MB, free: 2.582 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.517e-05/0.006583, allocations: 7.984 kB / 355.1 MB, free: 2.574 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.352e-05/0.006626, allocations: 78.2 kB / 355.2 MB, free: 2.496 MB / 282.7 MB Notification: Performance of SimCode: time 5.11e-07/0.006627, allocations: 0 / 355.2 MB, free: 2.496 MB / 282.7 MB Notification: Performance of Templates: time 0.00244/0.009066, allocations: 1.054 MB / 356.3 MB, free: 1.461 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.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: 3.0314041059464216]