Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001351/0.001351, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002017/0.003368, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.00126/0.00126, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001733/0.002993, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.15/1.15, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1357/1.286, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.4092/0.4092, allocations: 32.81 MB / 276.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03764/0.4468, allocations: 12.52 MB / 289.3 MB, free: 8.676 MB / 282.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.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.625e-06/2.625e-06, allocations: 0 / 290.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.667e-05/3.929e-05, allocations: 4.203 kB / 290.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005078/0.005117, allocations: 2.887 MB / 293.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.00696, allocations: 0.7868 MB / 294.3 MB, free: 4.633 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.007205, allocations: 11.94 kB / 294.3 MB, free: 4.621 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001626/0.007367, allocations: 63.38 kB / 294.3 MB, free: 4.559 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002801/0.007647, allocations: 134.8 kB / 294.5 MB, free: 4.426 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.007965, allocations: 111.7 kB / 294.6 MB, free: 4.316 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005536/0.008519, allocations: 467 kB / 295 MB, free: 3.859 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002399/0.008759, allocations: 102.8 kB / 295.1 MB, free: 3.754 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005101/0.009269, allocations: 279.4 kB / 295.4 MB, free: 3.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002345/0.009503, allocations: 131.6 kB / 295.5 MB, free: 3.352 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.088e-05/0.009564, allocations: 32 kB / 295.6 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.009687, allocations: 36 kB / 295.6 MB, free: 3.285 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.937e-05/0.009747, allocations: 55.81 kB / 295.7 MB, free: 3.23 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.00988, allocations: 119.8 kB / 295.8 MB, free: 3.113 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004093/0.01029, allocations: 266.9 kB / 296 MB, free: 2.852 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.897e-05/0.01031, allocations: 0 / 296 MB, free: 2.852 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.01031, allocations: 0 / 296 MB, free: 2.852 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.28e-05/0.01033, allocations: 0 / 296 MB, free: 2.852 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0008924/0.01122, allocations: 0.6448 MB / 296.7 MB, free: 2.18 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.01127, allocations: 12.03 kB / 296.7 MB, free: 2.168 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/0.01155, allocations: 150 kB / 296.8 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003032/0.01186, allocations: 198.7 kB / 297 MB, free: 1.785 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.01188, allocations: 25.38 kB / 297.1 MB, free: 1.762 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.209e-05/0.01195, allocations: 52.31 kB / 297.1 MB, free: 1.711 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003947/0.01234, allocations: 323.3 kB / 297.4 MB, free: 1.359 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/0.01237, allocations: 16.11 kB / 297.4 MB, free: 1.344 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.01239, allocations: 12.38 kB / 297.5 MB, free: 1.332 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.0124, allocations: 19.88 kB / 297.5 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001655/0.01257, allocations: 100.8 kB / 297.6 MB, free: 1.215 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.01438, allocations: 1.458 MB / 299 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000328/0.01471, allocations: 198.3 kB / 299.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.651e-05/0.01478, allocations: 70.11 kB / 299.3 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.01481, allocations: 11.94 kB / 299.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.01485, allocations: 42.5 kB / 299.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 2.084e-06/0.01485, allocations: 0 / 299.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004172/0.01526, allocations: 165.4 kB / 299.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.01537, allocations: 221.5 kB / 299.7 MB, free: 14.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.01557, allocations: 262.7 kB / 300 MB, free: 14.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.01559, allocations: 29.7 kB / 300 MB, free: 14.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.01573, allocations: 231.9 kB / 300.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.341e-05/0.01582, allocations: 123 kB / 300.4 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.01594, allocations: 102.2 kB / 300.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.01607, allocations: 346.7 kB / 300.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.847e-05/0.01614, allocations: 41.28 kB / 300.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.01643, allocations: 377.4 kB / 301.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004448/0.01688, allocations: 496.2 kB / 301.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.01688, allocations: 4 kB / 301.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004211/0.01731, allocations: 381.6 kB / 302.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.01734, allocations: 12 kB / 302.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.01735, allocations: 16.16 kB / 302.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.01738, allocations: 12 kB / 302.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004225/0.0178, allocations: 182.1 kB / 302.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.41e-05/0.01782, allocations: 24.42 kB / 302.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.01799, allocations: 59.58 kB / 302.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.01802, allocations: 28 kB / 302.4 MB, free: 11.8 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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 0.0001195/0.01814, allocations: 161.5 kB / 302.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.437e-05/0.01822, allocations: 27.98 kB / 302.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.894e-05/0.01827, allocations: 37.8 kB / 302.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.01828, allocations: 8 kB / 302.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.01828, allocations: 4 kB / 302.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.01829, allocations: 11.86 kB / 302.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007341/0.01902, allocations: 455.4 kB / 303.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.01903, allocations: 4 kB / 303.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002929/0.01932, allocations: 103.9 kB / 303.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.468e-05/0.01936, allocations: 31.75 kB / 303.2 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.01936, allocations: 4.062 kB / 303.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.01939, allocations: 12 kB / 303.2 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.473e-06/0.0194, allocations: 11.88 kB / 303.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.0194, allocations: 0 / 303.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004826/0.01988, allocations: 0.7431 MB / 304 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.01992, allocations: 8 kB / 304 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.0201, allocations: 8 kB / 304 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.042e-05/0.02016, allocations: 23.91 kB / 304 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.02017, allocations: 11.98 kB / 304 MB, free: 10.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.814e-05/0.02024, allocations: 80.66 kB / 304.1 MB, free: 10.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02024, allocations: 0 / 304.1 MB, free: 10.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004982/0.02074, allocations: 99.89 kB / 304.2 MB, free: 9.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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 0.0001565/0.02089, allocations: 92.28 kB / 304.3 MB, free: 9.809 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003047/0.0212, allocations: 229.1 kB / 304.5 MB, free: 9.582 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.349e-05/0.02122, allocations: 8 kB / 304.5 MB, free: 9.574 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.968e-05/0.02129, allocations: 69.34 kB / 304.6 MB, free: 9.504 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006362/0.02193, allocations: 111.5 kB / 304.7 MB, free: 9.398 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004796/0.02672, allocations: 0.792 MB / 305.5 MB, free: 8.551 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.02685, allocations: 112.5 kB / 305.6 MB, free: 8.418 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.027, allocations: 43.72 kB / 305.7 MB, free: 8.379 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.02714, allocations: 119.3 kB / 305.8 MB, free: 8.262 MB / 298.7 MB Notification: Performance of SimCode: time 1.503e-06/0.02714, allocations: 0 / 305.8 MB, free: 8.262 MB / 298.7 MB Notification: Performance of Templates: time 0.006998/0.03414, allocations: 3.492 MB / 309.3 MB, free: 4.855 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.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.5397580340504646]