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.001287/0.001287, allocations: 79.69 kB / 21.7 MB, free: 2.844 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.001413/0.001413, allocations: 167 kB / 24.99 MB, free: 9.301 MB / 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.911/0.911, allocations: 177 MB / 205.2 MB, free: 5.16 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.2739/0.2739, allocations: 34.86 MB / 296.6 MB, free: 0.5312 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.542e-06/1.542e-06, allocations: 0 / 378.7 MB, free: 2.445 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.538e-05/1.692e-05, allocations: 2.312 kB / 378.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001204/0.001221, allocations: 0.8277 MB / 379.6 MB, free: 1.613 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001696/0.00139, allocations: 43.89 kB / 379.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.138e-05/0.001452, allocations: 3.938 kB / 379.6 MB, free: 1.566 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.001564, allocations: 7.938 kB / 379.6 MB, free: 1.559 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.641e-05/0.001581, allocations: 3.938 kB / 379.6 MB, free: 1.555 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000106/0.001687, allocations: 23.91 kB / 379.6 MB, free: 1.531 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 8.966e-05/0.001776, allocations: 31.92 kB / 379.7 MB, free: 1.5 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.752e-05/0.001864, allocations: 11.98 kB / 379.7 MB, free: 1.488 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.827e-05/0.001902, allocations: 23.91 kB / 379.7 MB, free: 1.465 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.604e-05/0.001938, allocations: 8 kB / 379.7 MB, free: 1.457 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.664e-05/0.001955, allocations: 0 / 379.7 MB, free: 1.457 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.757e-06/0.001963, allocations: 8 kB / 379.7 MB, free: 1.449 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.508e-05/0.001989, allocations: 11.92 kB / 379.7 MB, free: 1.438 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.167e-05/0.00201, allocations: 4 kB / 379.7 MB, free: 1.434 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 8.631e-05/0.002097, allocations: 31.84 kB / 379.8 MB, free: 1.402 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.002098, allocations: 0 / 379.8 MB, free: 1.402 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.002099, allocations: 0 / 379.8 MB, free: 1.402 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.002102, allocations: 0 / 379.8 MB, free: 1.402 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.0003404/0.002443, allocations: 388.2 kB / 380.2 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.002476, allocations: 8.031 kB / 380.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.63e-05/0.002512, allocations: 8.922 kB / 380.2 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.002646, allocations: 136.5 kB / 380.3 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.002656, allocations: 4.375 kB / 380.3 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.002672, allocations: 4.375 kB / 380.3 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.62e-05/0.002748, allocations: 46.25 kB / 380.4 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.53e-06/0.002754, allocations: 192 / 380.4 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.002761, allocations: 384 / 380.4 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.002768, allocations: 384 / 380.4 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.721e-05/0.002795, allocations: 11.94 kB / 380.4 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003402/0.003136, allocations: 283.6 kB / 380.6 MB, free: 432 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.434e-05/0.00318, allocations: 39.03 kB / 380.7 MB, free: 380 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.545e-05/0.003195, allocations: 15.62 kB / 380.7 MB, free: 360 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.221e-06/0.003202, allocations: 4.062 kB / 380.7 MB, free: 356 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.219e-05/0.003264, allocations: 53 kB / 380.8 MB, free: 288 kB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.003265, allocations: 0 / 380.8 MB, free: 288 kB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001132/0.003378, allocations: 45.69 kB / 380.8 MB, free: 236 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.686e-05/0.003405, allocations: 51.41 kB / 380.8 MB, free: 172 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.233e-05/0.003487, allocations: 169.9 kB / 381 MB, free: 15.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.997e-06/0.003496, allocations: 29.7 kB / 381 MB, free: 15.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.187e-05/0.003538, allocations: 130.9 kB / 381.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.371e-05/0.003552, allocations: 19.95 kB / 381.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.332e-05/0.003575, allocations: 23.38 kB / 381.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003272/0.003902, allocations: 0.4883 MB / 381.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.251e-05/0.003915, allocations: 7.938 kB / 381.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.081e-05/0.003936, allocations: 23.36 kB / 381.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.608e-05/0.003962, allocations: 23.38 kB / 381.8 MB, free: 15.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.003965, allocations: 8 kB / 381.8 MB, free: 15.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.122e-05/0.004016, allocations: 57.52 kB / 381.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.004026, allocations: 4 kB / 381.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.004031, allocations: 4 kB / 381.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.004043, allocations: 4.031 kB / 381.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.393e-05/0.004067, allocations: 4 kB / 381.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.004072, allocations: 0 / 381.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.509e-05/0.004087, allocations: 0 / 381.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-06/0.00409, allocations: 4 kB / 381.8 MB, free: 15.11 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 5.746e-05/0.004148, allocations: 160.6 kB / 382 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.245e-06/0.004156, allocations: 11.89 kB / 382 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.454e-05/0.004171, allocations: 4 kB / 382 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.004173, allocations: 0 / 382 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.004175, allocations: 3.938 kB / 382 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.004178, allocations: 4 kB / 382 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.004346, allocations: 305.4 kB / 382.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.004347, allocations: 0 / 382.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.459e-05/0.004361, allocations: 0 / 382.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.004362, allocations: 0 / 382.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.004372, allocations: 4 kB / 382.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.004373, allocations: 0 / 382.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.004374, allocations: 0 / 382.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.997e-05/0.004474, allocations: 204.2 kB / 382.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.011e-06/0.00448, allocations: 7.938 kB / 382.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.526e-06/0.004488, allocations: 0 / 382.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.63e-05/0.004515, allocations: 8.031 kB / 382.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.113e-05/0.004536, allocations: 0 / 382.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.00454, allocations: 4 kB / 382.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.196e-05/0.004572, allocations: 131.2 kB / 382.7 MB, free: 14.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004572, allocations: 0 / 382.7 MB, free: 14.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001369/0.004709, allocations: 4 kB / 382.7 MB, free: 14.2 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 5.838e-05/0.004767, allocations: 95.25 kB / 382.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.624e-05/0.004833, allocations: 27.55 kB / 382.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.004834, allocations: 0 / 382.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.429e-05/0.004849, allocations: 15.75 kB / 382.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001735/0.005022, allocations: 19.92 kB / 382.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002212/0.005243, allocations: 134.1 kB / 383 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.926e-05/0.005273, allocations: 59.34 kB / 383 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.684e-05/0.005289, allocations: 7.906 kB / 383 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.124e-05/0.005311, allocations: 8.5 kB / 383 MB, free: 13.77 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.005311, allocations: 4 kB / 383 MB, free: 13.76 MB / 362.7 MB Notification: Performance of Templates: time 0.001828/0.007139, allocations: 0.5152 MB / 383.6 MB, free: 13.26 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: 2.8649135720916092]