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.0009538/0.0009538, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001024/0.001024, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.04/1.04, allocations: 177.1 MB / 205.3 MB, free: 5.645 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.2642/0.2642, allocations: 32.8 MB / 294.6 MB, free: 1.188 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.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.234e-06/2.234e-06, allocations: 0 / 376 MB, free: 4.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.099e-05/3.322e-05, allocations: 6.25 kB / 376 MB, free: 4.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004597/0.00463, allocations: 2.848 MB / 378.8 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.006165, allocations: 0.7632 MB / 379.6 MB, free: 1.344 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002192/0.006384, allocations: 7.938 kB / 379.6 MB, free: 1.336 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002056/0.00659, allocations: 59.38 kB / 379.7 MB, free: 1.277 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003043/0.006894, allocations: 142.8 kB / 379.8 MB, free: 1.137 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003902/0.007284, allocations: 103.7 kB / 379.9 MB, free: 1.035 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005119/0.007796, allocations: 457.6 kB / 380.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/0.00804, allocations: 94.19 kB / 380.5 MB, free: 496 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004648/0.008505, allocations: 267.4 kB / 380.7 MB, free: 228 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.00875, allocations: 127.6 kB / 380.8 MB, free: 100 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.914e-05/0.008809, allocations: 32 kB / 380.9 MB, free: 68 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.008911, allocations: 43.97 kB / 380.9 MB, free: 24 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.515e-05/0.008996, allocations: 79.67 kB / 381 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.009154, allocations: 139.7 kB / 381.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004281/0.009582, allocations: 290.9 kB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.009585, allocations: 0 / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.009587, allocations: 3.938 kB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.138e-06/0.009596, allocations: 0 / 381.4 MB, free: 15.52 MB / 362.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.0009535/0.01055, allocations: 0.6754 MB / 382.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.0106, allocations: 8.031 kB / 382.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003042/0.0109, allocations: 92.64 kB / 382.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003563/0.01126, allocations: 232.4 kB / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.01129, allocations: 29.38 kB / 382.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.189e-05/0.01136, allocations: 40.33 kB / 382.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005906/0.01195, allocations: 360.9 kB / 382.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.141e-05/0.01198, allocations: 12.14 kB / 382.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.77e-05/0.01202, allocations: 16.38 kB / 382.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.01204, allocations: 11.94 kB / 382.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003086/0.01235, allocations: 138.2 kB / 383 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/0.01439, allocations: 1.963 MB / 385 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003987/0.01479, allocations: 289.7 kB / 385.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.0149, allocations: 93.83 kB / 385.3 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.01493, allocations: 7.938 kB / 385.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/0.01497, allocations: 49.38 kB / 385.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.545e-06/0.01497, allocations: 0 / 385.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.00055/0.01552, allocations: 213.5 kB / 385.6 MB, free: 10.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.01562, allocations: 209.6 kB / 385.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000271/0.01589, allocations: 318.1 kB / 386.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.01591, allocations: 25.7 kB / 386.2 MB, free: 10.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.01607, allocations: 298.6 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.01617, allocations: 123.5 kB / 386.6 MB, free: 9.949 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.0163, allocations: 108 kB / 386.7 MB, free: 9.832 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.01646, allocations: 0.5118 MB / 387.2 MB, free: 9.309 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.01658, allocations: 57.27 kB / 387.2 MB, free: 9.254 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004345/0.01702, allocations: 0.5196 MB / 387.8 MB, free: 8.516 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005838/0.0176, allocations: 0.6318 MB / 388.4 MB, free: 7.664 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.01761, allocations: 4 kB / 388.4 MB, free: 7.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000827/0.01844, allocations: 481.2 kB / 388.9 MB, free: 7.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.01846, allocations: 8 kB / 388.9 MB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.01848, allocations: 19.92 kB / 388.9 MB, free: 7.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.01851, allocations: 16 kB / 388.9 MB, free: 7.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004261/0.01893, allocations: 143.8 kB / 389 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.662e-05/0.01896, allocations: 27.86 kB / 389.1 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000279/0.01924, allocations: 64.44 kB / 389.1 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.01928, allocations: 32 kB / 389.2 MB, free: 6.879 MB / 362.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.0001629/0.01944, allocations: 208.3 kB / 389.4 MB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001657/0.01961, allocations: 43.75 kB / 389.4 MB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.132e-05/0.01967, allocations: 33.8 kB / 389.4 MB, free: 6.586 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.01967, allocations: 4 kB / 389.5 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.01968, allocations: 11.98 kB / 389.5 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.01969, allocations: 0 / 389.5 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.02084, allocations: 0.648 MB / 390.1 MB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.02085, allocations: 4.188 kB / 390.1 MB, free: 5.867 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004304/0.02128, allocations: 91.95 kB / 390.2 MB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.02129, allocations: 4 kB / 390.2 MB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.062e-05/0.02133, allocations: 15.97 kB / 390.2 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.02133, allocations: 4 kB / 390.2 MB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.02133, allocations: 0 / 390.2 MB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006599/0.02199, allocations: 1.089 MB / 391.3 MB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.691e-05/0.02203, allocations: 27.8 kB / 391.3 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.809e-05/0.02208, allocations: 12 kB / 391.4 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003597/0.02244, allocations: 12 kB / 391.4 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.902e-05/0.02251, allocations: 31.83 kB / 391.4 MB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.02252, allocations: 8 kB / 391.4 MB, free: 4.539 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001442/0.02267, allocations: 199 kB / 391.6 MB, free: 4.348 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.02267, allocations: 4 kB / 391.6 MB, free: 4.344 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007618/0.02343, allocations: 99.83 kB / 391.7 MB, free: 4.246 MB / 362.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.0001189/0.02355, allocations: 114.2 kB / 391.8 MB, free: 4.125 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003854/0.02393, allocations: 232.3 kB / 392 MB, free: 3.898 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.02394, allocations: 0 / 392 MB, free: 3.898 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.02405, allocations: 87.7 kB / 392.1 MB, free: 3.809 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009635/0.02502, allocations: 69.3 kB / 392.2 MB, free: 3.738 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.02706, allocations: 1.2 MB / 393.4 MB, free: 2.473 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001213/0.02718, allocations: 104.5 kB / 393.5 MB, free: 2.352 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.02733, allocations: 47.25 kB / 393.5 MB, free: 2.305 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.192e-05/0.02739, allocations: 28.5 kB / 393.6 MB, free: 2.277 MB / 362.7 MB Notification: Performance of SimCode: time 7.82e-07/0.02739, allocations: 0 / 393.6 MB, free: 2.277 MB / 362.7 MB Notification: Performance of Templates: time 0.005791/0.03318, allocations: 2.883 MB / 396.5 MB, free: 15.45 MB / 378.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 -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.2424671051558107]