Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.001311/0.001311, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.0009473/0.0009473, allocations: 167.3 kB / 24.91 MB, free: 9.152 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 1.05/1.05, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2581/0.2581, allocations: 32.8 MB / 294.6 MB, free: 1.184 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.173e-06/1.173e-06, allocations: 3.938 kB / 323.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.815e-05/1.933e-05, allocations: 3.188 kB / 323.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002217/0.002236, allocations: 1.955 MB / 325.2 MB, free: 7.758 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007519/0.002988, allocations: 0.5569 MB / 325.7 MB, free: 7.195 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.265e-05/0.003061, allocations: 0 / 325.7 MB, free: 7.195 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.003175, allocations: 23.73 kB / 325.7 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.643e-05/0.003252, allocations: 43.62 kB / 325.8 MB, free: 7.129 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.003446, allocations: 51.81 kB / 325.8 MB, free: 7.078 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001872/0.003633, allocations: 159.8 kB / 326 MB, free: 6.922 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.003769, allocations: 42.48 kB / 326 MB, free: 6.879 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.00395, allocations: 103.7 kB / 326.1 MB, free: 6.777 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.378e-05/0.004034, allocations: 43.88 kB / 326.2 MB, free: 6.734 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.004052, allocations: 12 kB / 326.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.254e-05/0.004095, allocations: 16 kB / 326.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.081e-05/0.004115, allocations: 27.91 kB / 326.2 MB, free: 6.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.69e-05/0.004152, allocations: 51.84 kB / 326.3 MB, free: 6.629 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.004295, allocations: 103.6 kB / 326.4 MB, free: 6.527 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-06/0.004297, allocations: 4 kB / 326.4 MB, free: 6.523 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.004297, allocations: 0 / 326.4 MB, free: 6.523 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.004301, allocations: 0 / 326.4 MB, free: 6.523 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0003576/0.004658, allocations: 341.4 kB / 326.7 MB, free: 6.168 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.004691, allocations: 12.02 kB / 326.7 MB, free: 6.156 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.004795, allocations: 28.92 kB / 326.8 MB, free: 6.129 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.00494, allocations: 138.2 kB / 326.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.004951, allocations: 8.375 kB / 326.9 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.724e-05/0.004978, allocations: 16.36 kB / 326.9 MB, free: 5.945 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.005103, allocations: 110.8 kB / 327 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.005114, allocations: 4.172 kB / 327 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.005128, allocations: 12.12 kB / 327 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.005134, allocations: 4 kB / 327 MB, free: 5.809 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.618e-05/0.00518, allocations: 27.97 kB / 327.1 MB, free: 5.781 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003653/0.005545, allocations: 291.8 kB / 327.4 MB, free: 5.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001003/0.005646, allocations: 82.45 kB / 327.4 MB, free: 5.391 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.056e-05/0.005676, allocations: 20.86 kB / 327.5 MB, free: 5.367 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.005688, allocations: 8 kB / 327.5 MB, free: 5.359 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.005707, allocations: 38.56 kB / 327.5 MB, free: 5.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.005708, allocations: 0 / 327.5 MB, free: 5.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007708/0.006479, allocations: 0.5496 MB / 328 MB, free: 4.711 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.006507, allocations: 51.41 kB / 328.1 MB, free: 4.648 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.779e-05/0.006575, allocations: 133.3 kB / 328.2 MB, free: 4.508 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.006588, allocations: 33.7 kB / 328.3 MB, free: 4.469 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.069e-05/0.006629, allocations: 104.5 kB / 328.4 MB, free: 4.363 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.618e-05/0.006665, allocations: 79.3 kB / 328.4 MB, free: 4.285 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.678e-05/0.006702, allocations: 33.7 kB / 328.5 MB, free: 4.246 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.466e-05/0.006776, allocations: 322.8 kB / 328.8 MB, free: 3.922 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.073e-05/0.006797, allocations: 15.98 kB / 328.8 MB, free: 3.906 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.313e-05/0.00684, allocations: 54.72 kB / 328.9 MB, free: 3.844 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.007241, allocations: 89.06 kB / 328.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.007242, allocations: 0 / 328.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001559/0.007398, allocations: 126.3 kB / 329.1 MB, free: 3.613 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.007411, allocations: 8 kB / 329.1 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.007415, allocations: 3.938 kB / 329.1 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001018/0.007517, allocations: 36.83 kB / 329.1 MB, free: 3.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.967e-05/0.007607, allocations: 40 kB / 329.2 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007538/0.00836, allocations: 1.442 MB / 330.6 MB, free: 1.992 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.306e-05/0.008393, allocations: 3.984 kB / 330.6 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.008402, allocations: 8 kB / 330.6 MB, free: 1.98 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 6.383e-05/0.008466, allocations: 121.8 kB / 330.7 MB, free: 1.852 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.008488, allocations: 19.92 kB / 330.7 MB, free: 1.832 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.79e-05/0.008506, allocations: 16.78 kB / 330.8 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.008507, allocations: 0 / 330.8 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.00851, allocations: 0 / 330.8 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.008514, allocations: 4 kB / 330.8 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003378/0.008852, allocations: 341 kB / 331.1 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.008854, allocations: 0 / 331.1 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.404e-05/0.008948, allocations: 35.97 kB / 331.1 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.607e-05/0.009024, allocations: 28.81 kB / 331.2 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.009032, allocations: 8 kB / 331.2 MB, free: 1.379 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005786/0.00961, allocations: 1.218 MB / 332.4 MB, free: 72 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.009612, allocations: 3.938 kB / 332.4 MB, free: 68 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001997/0.009811, allocations: 249 kB / 332.6 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.217e-06/0.009821, allocations: 11.91 kB / 332.6 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.037e-06/0.00983, allocations: 0 / 332.6 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.38e-05/0.009874, allocations: 12 kB / 332.7 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.429e-05/0.009908, allocations: 15.97 kB / 332.7 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.009915, allocations: 7.938 kB / 332.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.036e-05/0.009935, allocations: 24.83 kB / 332.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.009935, allocations: 0 / 332.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001795/0.01011, allocations: 40 kB / 332.7 MB, free: 15.69 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001009/0.01022, allocations: 81.42 kB / 332.8 MB, free: 15.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002492/0.01046, allocations: 211.3 kB / 333 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.01047, allocations: 0 / 333 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.01058, allocations: 179.3 kB / 333.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/0.01076, allocations: 22.39 kB / 333.2 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006429/0.0114, allocations: 372.5 kB / 333.6 MB, free: 14.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.217e-05/0.01145, allocations: 76.22 kB / 333.7 MB, free: 14.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.537e-05/0.01149, allocations: 13.56 kB / 333.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.343e-05/0.01155, allocations: 67.38 kB / 333.7 MB, free: 14.6 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.01155, allocations: 0 / 333.7 MB, free: 14.6 MB / 314.7 MB Notification: Performance of Templates: time 0.003414/0.01497, allocations: 1.724 MB / 335.5 MB, free: 12.91 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.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.0590589810162783]