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.00102/0.00102, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.001009/0.001009, allocations: 160.5 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9729/0.9729, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] 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.2889/0.2889, allocations: 34.87 MB / 296.3 MB, free: 0.5625 MB / 266.7 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 1.663e-06/1.663e-06, allocations: 0 / 378.8 MB, free: 2.117 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.804e-05/2.971e-05, allocations: 4.141 kB / 378.8 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001923/0.001953, allocations: 0.8259 MB / 379.6 MB, free: 1.285 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002092/0.002162, allocations: 43.83 kB / 379.6 MB, free: 1.242 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.132e-05/0.002223, allocations: 0 / 379.6 MB, free: 1.242 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.00234, allocations: 7.922 kB / 379.6 MB, free: 1.234 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.588e-05/0.002356, allocations: 4 kB / 379.6 MB, free: 1.23 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000108/0.002464, allocations: 19.92 kB / 379.7 MB, free: 1.211 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.002572, allocations: 43.84 kB / 379.7 MB, free: 1.168 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.002674, allocations: 11.98 kB / 379.7 MB, free: 1.156 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.227e-05/0.002716, allocations: 15.98 kB / 379.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.087e-05/0.002757, allocations: 15.92 kB / 379.7 MB, free: 1.125 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.002776, allocations: 0 / 379.7 MB, free: 1.125 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.928e-06/0.002785, allocations: 4 kB / 379.7 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.234e-05/0.002808, allocations: 7.984 kB / 379.8 MB, free: 1.113 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.26e-05/0.00283, allocations: 7.938 kB / 379.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.002941, allocations: 31.89 kB / 379.8 MB, free: 1.074 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.002943, allocations: 0 / 379.8 MB, free: 1.074 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.002944, allocations: 3.938 kB / 379.8 MB, free: 1.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.002949, allocations: 4 kB / 379.8 MB, free: 1.066 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.0003998/0.003349, allocations: 388.2 kB / 380.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.003386, allocations: 8.031 kB / 380.2 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.003427, allocations: 4.938 kB / 380.2 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.003578, allocations: 128.5 kB / 380.3 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.003589, allocations: 8.375 kB / 380.3 MB, free: 484 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.908e-05/0.003608, allocations: 4.375 kB / 380.3 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.801e-05/0.003696, allocations: 46.25 kB / 380.4 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.003702, allocations: 192 / 380.4 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.003711, allocations: 4.375 kB / 380.4 MB, free: 424 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.003719, allocations: 4.359 kB / 380.4 MB, free: 420 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.053e-05/0.003749, allocations: 15.92 kB / 380.4 MB, free: 404 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003913/0.00414, allocations: 287.6 kB / 380.7 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.162e-05/0.004192, allocations: 31.06 kB / 380.7 MB, free: 36 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.952e-05/0.004211, allocations: 11.62 kB / 380.7 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.635e-06/0.004219, allocations: 64 / 380.7 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.291e-05/0.004312, allocations: 57 kB / 380.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.814e-06/0.004314, allocations: 0 / 380.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001351/0.004449, allocations: 49.69 kB / 380.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.004484, allocations: 51.41 kB / 380.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.885e-05/0.004563, allocations: 169.9 kB / 381 MB, free: 15.65 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.004577, allocations: 33.7 kB / 381.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.977e-05/0.004627, allocations: 134.9 kB / 381.2 MB, free: 15.47 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.336e-05/0.00464, allocations: 7.953 kB / 381.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.918e-05/0.00467, allocations: 23.38 kB / 381.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.004785, allocations: 496.1 kB / 381.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.357e-05/0.004799, allocations: 7.938 kB / 381.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.167e-05/0.00482, allocations: 19.38 kB / 381.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.518e-05/0.004856, allocations: 27.38 kB / 381.8 MB, free: 14.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.004857, allocations: 0 / 381.8 MB, free: 14.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.483e-05/0.004922, allocations: 61.52 kB / 381.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.004935, allocations: 4 kB / 381.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.00494, allocations: 0 / 381.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.004953, allocations: 4 kB / 381.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.415e-05/0.004987, allocations: 4 kB / 381.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.004995, allocations: 7.922 kB / 381.9 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.095e-05/0.005015, allocations: 0 / 381.9 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.005022, allocations: 4 kB / 381.9 MB, free: 14.78 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 9.221e-05/0.005114, allocations: 160.6 kB / 382 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.236e-05/0.005126, allocations: 11.89 kB / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.664e-05/0.005153, allocations: 11.94 kB / 382 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.005155, allocations: 0 / 382 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.005161, allocations: 0 / 382 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.005166, allocations: 0 / 382 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002619/0.005427, allocations: 301.7 kB / 382.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.005429, allocations: 0 / 382.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.745e-05/0.005446, allocations: 0 / 382.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.005449, allocations: 4.031 kB / 382.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.005463, allocations: 8 kB / 382.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.005465, allocations: 0 / 382.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.005469, allocations: 7.938 kB / 382.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/0.005616, allocations: 199.9 kB / 382.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.147e-06/0.005625, allocations: 3.953 kB / 382.6 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.005638, allocations: 0 / 382.6 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.143e-05/0.005669, allocations: 8 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.223e-05/0.005701, allocations: 3.984 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.005706, allocations: 0 / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.475e-05/0.005751, allocations: 127.2 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005751, allocations: 0 / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001472/0.005898, allocations: 12.03 kB / 382.7 MB, free: 13.86 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 8.099e-05/0.005979, allocations: 91.25 kB / 382.8 MB, free: 13.76 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.331e-05/0.006062, allocations: 23.61 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.006064, allocations: 0 / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.597e-05/0.00608, allocations: 11.69 kB / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.006273, allocations: 15.92 kB / 382.8 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000298/0.006571, allocations: 138.1 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.076e-05/0.006612, allocations: 55.36 kB / 383 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.987e-05/0.006632, allocations: 7.969 kB / 383 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.576e-05/0.006657, allocations: 12.5 kB / 383.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.006658, allocations: 0 / 383.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of Templates: time 0.002229/0.008887, allocations: 0.5368 MB / 383.6 MB, free: 12.91 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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: 3.09938896773383]