Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.001277/0.001277, allocations: 80.8 kB / 21.49 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.001362/0.001362, allocations: 168.7 kB / 24.91 MB, free: 9.199 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.9375/0.9375, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.2614/0.2614, allocations: 34.26 MB / 296.1 MB, free: 0.7266 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.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 325.2 MB, free: 7.715 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.7e-05/1.894e-05, allocations: 4.031 kB / 325.2 MB, free: 7.711 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002586/0.002605, allocations: 1.693 MB / 326.9 MB, free: 6.004 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003353/0.00294, allocations: 111.5 kB / 327 MB, free: 5.895 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.773e-05/0.003008, allocations: 7.938 kB / 327 MB, free: 5.887 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.758e-05/0.003065, allocations: 11.86 kB / 327 MB, free: 5.875 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.0032, allocations: 39.7 kB / 327.1 MB, free: 5.836 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001356/0.003336, allocations: 27.95 kB / 327.1 MB, free: 5.809 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.00349, allocations: 135.3 kB / 327.2 MB, free: 5.676 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.003604, allocations: 21.94 kB / 327.3 MB, free: 5.656 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.003738, allocations: 83.8 kB / 327.3 MB, free: 5.574 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.151e-05/0.00382, allocations: 27.92 kB / 327.4 MB, free: 5.547 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.003847, allocations: 11.98 kB / 327.4 MB, free: 5.535 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.992e-05/0.003867, allocations: 12 kB / 327.4 MB, free: 5.523 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.751e-05/0.003894, allocations: 19.92 kB / 327.4 MB, free: 5.504 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.63e-05/0.003951, allocations: 44.53 kB / 327.5 MB, free: 5.461 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.004109, allocations: 87.66 kB / 327.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.004111, allocations: 0 / 327.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.004112, allocations: 0 / 327.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.004116, allocations: 0 / 327.5 MB, free: 5.375 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004079/0.004524, allocations: 302.2 kB / 327.8 MB, free: 5.051 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.004563, allocations: 8.031 kB / 327.8 MB, free: 5.043 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.621e-05/0.004609, allocations: 24.86 kB / 327.9 MB, free: 5.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.004764, allocations: 129.7 kB / 328 MB, free: 4.867 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.004781, allocations: 12.61 kB / 328 MB, free: 4.855 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.468e-05/0.004815, allocations: 20.33 kB / 328 MB, free: 4.836 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.00497, allocations: 107.1 kB / 328.1 MB, free: 4.723 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.004984, allocations: 8.125 kB / 328.1 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.004994, allocations: 4.375 kB / 328.1 MB, free: 4.711 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.005003, allocations: 4.375 kB / 328.1 MB, free: 4.707 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.487e-05/0.005058, allocations: 31.92 kB / 328.2 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004915/0.005549, allocations: 367.9 kB / 328.5 MB, free: 4.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.301e-05/0.005642, allocations: 65.2 kB / 328.6 MB, free: 4.215 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.6e-05/0.005668, allocations: 29.7 kB / 328.6 MB, free: 4.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.005678, allocations: 7.938 kB / 328.6 MB, free: 4.172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.005701, allocations: 30.56 kB / 328.7 MB, free: 4.133 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.193e-06/0.005702, allocations: 0 / 328.7 MB, free: 4.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003459/0.006048, allocations: 119.3 kB / 328.8 MB, free: 4.004 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.00609, allocations: 81.11 kB / 328.9 MB, free: 3.906 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.058e-05/0.006171, allocations: 123.6 kB / 329 MB, free: 3.773 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.006183, allocations: 29.7 kB / 329 MB, free: 3.738 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.557e-05/0.006239, allocations: 119.9 kB / 329.1 MB, free: 3.617 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.607e-05/0.006275, allocations: 39.67 kB / 329.2 MB, free: 3.578 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.259e-05/0.006317, allocations: 29.7 kB / 329.2 MB, free: 3.543 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.459e-05/0.006412, allocations: 322.8 kB / 329.5 MB, free: 3.219 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.173e-05/0.006434, allocations: 11.98 kB / 329.5 MB, free: 3.207 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.35e-05/0.006497, allocations: 76.5 kB / 329.6 MB, free: 3.102 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.006599, allocations: 104.4 kB / 329.7 MB, free: 2.969 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.006602, allocations: 0 / 329.7 MB, free: 2.969 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001859/0.006788, allocations: 123 kB / 329.8 MB, free: 2.836 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.006802, allocations: 8 kB / 329.8 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.006809, allocations: 4 kB / 329.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000145/0.006954, allocations: 41.89 kB / 329.9 MB, free: 2.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.691e-05/0.007021, allocations: 19.98 kB / 329.9 MB, free: 2.758 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.0084, allocations: 2.309 MB / 332.2 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.235e-05/0.008463, allocations: 19.89 kB / 332.2 MB, free: 256 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.00847, allocations: 4 kB / 332.2 MB, free: 252 kB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.123e-05/0.008551, allocations: 125.7 kB / 332.3 MB, free: 116 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.123e-05/0.008592, allocations: 11.92 kB / 332.4 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.324e-05/0.008616, allocations: 12 kB / 332.4 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.008617, allocations: 4.094 kB / 332.4 MB, free: 84 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.008623, allocations: 4 kB / 332.4 MB, free: 80 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.008626, allocations: 0 / 332.4 MB, free: 80 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002061/0.008832, allocations: 93.84 kB / 332.5 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.008834, allocations: 0 / 332.5 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.862e-05/0.008903, allocations: 12 kB / 332.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-05/0.008982, allocations: 25.7 kB / 332.5 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.00899, allocations: 0 / 332.5 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001205/0.01019, allocations: 2.313 MB / 334.8 MB, free: 13.44 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.0102, allocations: 0 / 334.8 MB, free: 13.44 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.01039, allocations: 277.6 kB / 335.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.027e-05/0.0104, allocations: 7.891 kB / 335.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.01042, allocations: 8 kB / 335.1 MB, free: 13.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.563e-05/0.0105, allocations: 0 / 335.1 MB, free: 13.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.148e-05/0.01052, allocations: 15.92 kB / 335.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-06/0.01053, allocations: 7.922 kB / 335.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.204e-05/0.01055, allocations: 18.81 kB / 335.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01055, allocations: 0 / 335.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003652/0.01092, allocations: 35.95 kB / 335.2 MB, free: 13.05 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.598e-05/0.01101, allocations: 88.41 kB / 335.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003034/0.01132, allocations: 282 kB / 335.5 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.01132, allocations: 4 kB / 335.6 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.01148, allocations: 254.3 kB / 335.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.01183, allocations: 33.73 kB / 335.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006315/0.01246, allocations: 328.2 kB / 336.2 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.156e-05/0.01251, allocations: 75.78 kB / 336.2 MB, free: 11.9 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.357e-05/0.01255, allocations: 8.969 kB / 336.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.249e-05/0.01262, allocations: 67.36 kB / 336.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01262, allocations: 0 / 336.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of Templates: time 0.004128/0.01675, allocations: 1.828 MB / 338.1 MB, free: 10.03 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.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.7954010777175426]