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.001748/0.001748, allocations: 83.58 kB / 21.18 MB, free: 3.387 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.001643/0.001643, allocations: 161 kB / 24.56 MB, free: 20 kB / 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.002/1.002, allocations: 177.1 MB / 205 MB, free: 5.629 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.2854/0.2854, allocations: 32.81 MB / 294.3 MB, free: 1.297 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 1.323e-06/1.323e-06, allocations: 0 / 376 MB, free: 4.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.687e-05/1.82e-05, allocations: 6.312 kB / 376 MB, free: 4.676 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002746/0.002764, allocations: 2.859 MB / 378.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.003875, allocations: 0.7671 MB / 379.6 MB, free: 1.027 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001679/0.004043, allocations: 7.938 kB / 379.6 MB, free: 1.02 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001605/0.004203, allocations: 63.33 kB / 379.7 MB, free: 0.957 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.004396, allocations: 130.8 kB / 379.8 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.004712, allocations: 111.8 kB / 379.9 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003623/0.005075, allocations: 457.6 kB / 380.4 MB, free: 276 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.005248, allocations: 94.12 kB / 380.5 MB, free: 172 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002969/0.005545, allocations: 263.4 kB / 380.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.005704, allocations: 135.6 kB / 380.9 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.933e-05/0.005743, allocations: 32 kB / 380.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.005813, allocations: 39.94 kB / 380.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.48e-05/0.005858, allocations: 79.73 kB / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.005962, allocations: 135.7 kB / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003225/0.006285, allocations: 290.9 kB / 381.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.006288, allocations: 4 kB / 381.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.006289, allocations: 0 / 381.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.006295, allocations: 0 / 381.4 MB, free: 15.21 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.0007924/0.007088, allocations: 0.6793 MB / 382.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.007137, allocations: 8.031 kB / 382.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002345/0.007372, allocations: 88.64 kB / 382.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.007663, allocations: 232.4 kB / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.007688, allocations: 29.38 kB / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-05/0.007746, allocations: 44.33 kB / 382.5 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003981/0.008144, allocations: 356.9 kB / 382.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.008167, allocations: 16.12 kB / 382.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/0.008193, allocations: 16.38 kB / 382.9 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.008206, allocations: 11.94 kB / 382.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.008392, allocations: 139.7 kB / 383 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001619/0.01001, allocations: 1.967 MB / 385 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.01033, allocations: 281.7 kB / 385.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.288e-05/0.01042, allocations: 93.81 kB / 385.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.01044, allocations: 11.94 kB / 385.4 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.01047, allocations: 45.39 kB / 385.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.393e-06/0.01047, allocations: 4 kB / 385.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003777/0.01085, allocations: 205.2 kB / 385.6 MB, free: 10.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.174e-05/0.01093, allocations: 217.6 kB / 385.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.01112, allocations: 314.1 kB / 386.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.01114, allocations: 29.7 kB / 386.2 MB, free: 10.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.01128, allocations: 302.7 kB / 386.5 MB, free: 9.746 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.078e-05/0.01135, allocations: 123 kB / 386.6 MB, free: 9.625 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.607e-05/0.01144, allocations: 99.95 kB / 386.7 MB, free: 9.516 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.01158, allocations: 0.5122 MB / 387.2 MB, free: 8.992 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.941e-05/0.01166, allocations: 57.27 kB / 387.3 MB, free: 8.938 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/0.01194, allocations: 0.5196 MB / 387.8 MB, free: 8.199 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004315/0.01237, allocations: 0.6322 MB / 388.4 MB, free: 7.348 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.01238, allocations: 8 kB / 388.4 MB, free: 7.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004952/0.01287, allocations: 481.5 kB / 388.9 MB, free: 6.863 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.01289, allocations: 8 kB / 388.9 MB, free: 6.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.0129, allocations: 15.94 kB / 388.9 MB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.01293, allocations: 16 kB / 388.9 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.01317, allocations: 139.8 kB / 389.1 MB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.01319, allocations: 27.86 kB / 389.1 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.01335, allocations: 59.56 kB / 389.2 MB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.01337, allocations: 32 kB / 389.2 MB, free: 6.57 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.0001111/0.01348, allocations: 220.3 kB / 389.4 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.44e-05/0.01358, allocations: 43.75 kB / 389.4 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.12e-05/0.01362, allocations: 33.8 kB / 389.5 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.01362, allocations: 4 kB / 389.5 MB, free: 6.262 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.01363, allocations: 4.5 kB / 389.5 MB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.01363, allocations: 0 / 389.5 MB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006997/0.01433, allocations: 0.6441 MB / 390.1 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.01434, allocations: 7.938 kB / 390.1 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002369/0.01457, allocations: 91.88 kB / 390.2 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.01458, allocations: 0 / 390.2 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.0146, allocations: 16.06 kB / 390.2 MB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.0146, allocations: 4 kB / 390.2 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.0146, allocations: 0 / 390.2 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004868/0.01509, allocations: 1.093 MB / 391.3 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.683e-05/0.01512, allocations: 31.75 kB / 391.4 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.01515, allocations: 12 kB / 391.4 MB, free: 4.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.01531, allocations: 7.984 kB / 391.4 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.989e-05/0.01536, allocations: 27.84 kB / 391.4 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.01537, allocations: 16 kB / 391.4 MB, free: 4.223 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.403e-05/0.01547, allocations: 203 kB / 391.6 MB, free: 4.027 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01547, allocations: 0 / 391.6 MB, free: 4.027 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004307/0.0159, allocations: 103.8 kB / 391.7 MB, free: 3.926 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 7.716e-05/0.01598, allocations: 106.2 kB / 391.8 MB, free: 3.812 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002596/0.01624, allocations: 244.6 kB / 392.1 MB, free: 3.574 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01624, allocations: 0 / 392.1 MB, free: 3.574 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.085e-05/0.01631, allocations: 84.08 kB / 392.2 MB, free: 3.488 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.01687, allocations: 65.36 kB / 392.2 MB, free: 3.422 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.01814, allocations: 1.203 MB / 393.4 MB, free: 2.152 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.17e-05/0.01822, allocations: 104.6 kB / 393.5 MB, free: 2.031 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.302e-05/0.01831, allocations: 39.27 kB / 393.6 MB, free: 1.992 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.764e-05/0.01836, allocations: 36.48 kB / 393.6 MB, free: 1.957 MB / 362.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01836, allocations: 0 / 393.6 MB, free: 1.957 MB / 362.7 MB Notification: Performance of Templates: time 0.005089/0.02345, allocations: 3.043 MB / 396.6 MB, free: 14.97 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.2658000900410116]