Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001539/0.001539, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001522/0.001522, allocations: 157.7 kB / 24.27 MB, free: 172 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.536/1.536, allocations: 177.2 MB / 204.6 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] 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.3727/0.3727, allocations: 34.26 MB / 295.3 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 179] 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.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.1.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.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 377.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.048e-05/3.233e-05, allocations: 2.312 kB / 377.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.007617/0.007649, allocations: 2.657 MB / 379.9 MB, free: 300 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002681/0.01033, allocations: 0.7478 MB / 380.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002544/0.01058, allocations: 11.94 kB / 380.7 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003121/0.0109, allocations: 51.45 kB / 380.7 MB, free: 15.48 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005514/0.01145, allocations: 146.6 kB / 380.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005326/0.01198, allocations: 103.8 kB / 381 MB, free: 15.23 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009534/0.01293, allocations: 457.6 kB / 381.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003773/0.01331, allocations: 94.12 kB / 381.5 MB, free: 14.68 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008254/0.01414, allocations: 267.4 kB / 381.8 MB, free: 14.42 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004289/0.01457, allocations: 127.6 kB / 381.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001234/0.01469, allocations: 32 kB / 381.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.01487, allocations: 40 kB / 382 MB, free: 14.23 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.01502, allocations: 83.67 kB / 382.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003485/0.01537, allocations: 135.7 kB / 382.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.01644, allocations: 446.5 kB / 382.6 MB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.01644, allocations: 0 / 382.6 MB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.01644, allocations: 0 / 382.6 MB, free: 13.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.01646, allocations: 0 / 382.6 MB, free: 13.57 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.001837/0.0183, allocations: 0.5794 MB / 383.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.01835, allocations: 8.031 kB / 383.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005969/0.01895, allocations: 92.64 kB / 383.3 MB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007392/0.01969, allocations: 225.6 kB / 383.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.247e-05/0.01975, allocations: 29.38 kB / 383.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.01988, allocations: 40.33 kB / 383.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.02117, allocations: 394.7 kB / 384 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.433e-05/0.02121, allocations: 12.08 kB / 384 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.254e-05/0.02127, allocations: 16.38 kB / 384 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.425e-05/0.0213, allocations: 15.94 kB / 384 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009206/0.02222, allocations: 219.7 kB / 384.2 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004418/0.02664, allocations: 1.556 MB / 385.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000919/0.02755, allocations: 262.3 kB / 386.1 MB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003531/0.02791, allocations: 94.02 kB / 386.2 MB, free: 9.801 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.772e-05/0.02796, allocations: 4 kB / 386.2 MB, free: 9.797 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.172e-05/0.02804, allocations: 54.44 kB / 386.2 MB, free: 9.734 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 4.358e-06/0.02804, allocations: 0 / 386.2 MB, free: 9.734 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.001393/0.02943, allocations: 269.4 kB / 386.5 MB, free: 9.465 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000237/0.02967, allocations: 217.6 kB / 386.7 MB, free: 9.203 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005194/0.03019, allocations: 272 kB / 387 MB, free: 8.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.801e-05/0.03026, allocations: 33.7 kB / 387 MB, free: 8.891 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/0.03058, allocations: 244.1 kB / 387.2 MB, free: 8.645 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.03078, allocations: 123 kB / 387.3 MB, free: 8.523 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002458/0.03103, allocations: 102.2 kB / 387.4 MB, free: 8.418 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003248/0.03135, allocations: 342.8 kB / 387.8 MB, free: 8.074 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003998/0.03175, allocations: 97.45 kB / 387.9 MB, free: 7.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009305/0.03268, allocations: 429.1 kB / 388.3 MB, free: 7.402 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/0.03417, allocations: 0.5667 MB / 388.9 MB, free: 6.676 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/0.03419, allocations: 4 kB / 388.9 MB, free: 6.672 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001933/0.03612, allocations: 0.5596 MB / 389.4 MB, free: 6.105 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.675e-05/0.03616, allocations: 8 kB / 389.4 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.969e-05/0.0362, allocations: 15.98 kB / 389.4 MB, free: 6.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.634e-05/0.03625, allocations: 16 kB / 389.5 MB, free: 6.066 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008388/0.03709, allocations: 143.8 kB / 389.6 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.156e-05/0.03714, allocations: 24.95 kB / 389.6 MB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006291/0.03777, allocations: 67.58 kB / 389.7 MB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.871e-05/0.03785, allocations: 36 kB / 389.7 MB, free: 5.801 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.0003518/0.0382, allocations: 181.5 kB / 389.9 MB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003094/0.03851, allocations: 39.8 kB / 389.9 MB, free: 5.574 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.03864, allocations: 33.8 kB / 390 MB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.03866, allocations: 11.94 kB / 390 MB, free: 5.523 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.03867, allocations: 4 kB / 390 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.03868, allocations: 0 / 390 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002444/0.04112, allocations: 0.5652 MB / 390.6 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.04113, allocations: 0 / 390.6 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009488/0.04208, allocations: 91.88 kB / 390.6 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.04209, allocations: 0 / 390.6 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.901e-05/0.04213, allocations: 12 kB / 390.7 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.356e-05/0.04215, allocations: 7.938 kB / 390.7 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.04215, allocations: 0 / 390.7 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.04377, allocations: 0.83 MB / 391.5 MB, free: 3.941 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.04389, allocations: 43.77 kB / 391.5 MB, free: 3.898 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.163e-05/0.04397, allocations: 8 kB / 391.5 MB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007137/0.04468, allocations: 15.94 kB / 391.6 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.04482, allocations: 23.89 kB / 391.6 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.365e-05/0.04485, allocations: 12 kB / 391.6 MB, free: 3.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003238/0.04517, allocations: 171.1 kB / 391.8 MB, free: 3.676 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.04517, allocations: 0 / 391.8 MB, free: 3.676 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001457/0.04663, allocations: 103.8 kB / 391.9 MB, free: 3.574 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.0002389/0.04687, allocations: 117.5 kB / 392 MB, free: 3.453 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.04794, allocations: 278.4 kB / 392.3 MB, free: 3.184 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.04795, allocations: 0 / 392.3 MB, free: 3.184 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004185/0.04837, allocations: 87.83 kB / 392.3 MB, free: 3.098 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.05025, allocations: 78.28 kB / 392.4 MB, free: 3.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003762/0.05401, allocations: 1.191 MB / 393.6 MB, free: 1.773 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.05443, allocations: 202.3 kB / 393.8 MB, free: 1.559 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002893/0.05472, allocations: 39.27 kB / 393.8 MB, free: 1.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.05483, allocations: 28.5 kB / 393.9 MB, free: 1.492 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/0.05483, allocations: 0 / 393.9 MB, free: 1.492 MB / 362.7 MB Notification: Performance of Templates: time 0.009607/0.06444, allocations: 2.889 MB / 396.8 MB, free: 14.66 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.008061733096838]