Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001875/0.001875, allocations: 99.53 kB / 20.97 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001958/0.001958, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.61/1.61, allocations: 177 MB / 204.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3552/0.3552, allocations: 34.25 MB / 295.2 MB, free: 0.6484 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 377.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.239e-05/3.446e-05, allocations: 8.781 kB / 377.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.006747/0.006782, allocations: 2.825 MB / 380 MB, free: 80 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002175/0.008956, allocations: 0.7556 MB / 380.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002433/0.009199, allocations: 11.94 kB / 380.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00027/0.00947, allocations: 59.39 kB / 380.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004882/0.009958, allocations: 134.8 kB / 381 MB, free: 15.11 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005329/0.01049, allocations: 111.7 kB / 381.1 MB, free: 15 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008933/0.01138, allocations: 457.6 kB / 381.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003509/0.01173, allocations: 98.12 kB / 381.6 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007743/0.01251, allocations: 259.5 kB / 381.9 MB, free: 14.2 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004319/0.01294, allocations: 135.6 kB / 382 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.01306, allocations: 36 kB / 382.1 MB, free: 14.03 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.01325, allocations: 32 kB / 382.1 MB, free: 14 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.01339, allocations: 83.67 kB / 382.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003595/0.01375, allocations: 139.7 kB / 382.3 MB, free: 13.78 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.01477, allocations: 446.5 kB / 382.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.01477, allocations: 0 / 382.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.01477, allocations: 0 / 382.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.914e-05/0.01479, allocations: 0 / 382.7 MB, free: 13.34 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.001936/0.01673, allocations: 0.7024 MB / 383.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.01678, allocations: 8.031 kB / 383.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005285/0.01731, allocations: 88.64 kB / 383.5 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006751/0.01799, allocations: 233.3 kB / 383.8 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.269e-05/0.01805, allocations: 29.38 kB / 383.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.01818, allocations: 44.33 kB / 383.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.01951, allocations: 428.2 kB / 384.3 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.189e-05/0.01957, allocations: 8.141 kB / 384.3 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.463e-05/0.01963, allocations: 16.38 kB / 384.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-05/0.01966, allocations: 19.92 kB / 384.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008778/0.02054, allocations: 203.8 kB / 384.5 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005105/0.02565, allocations: 2.057 MB / 386.6 MB, free: 9.328 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009846/0.02663, allocations: 321.7 kB / 386.9 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003478/0.02698, allocations: 109.8 kB / 387 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.02701, allocations: 4 kB / 387 MB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.102e-05/0.02708, allocations: 49.33 kB / 387 MB, free: 8.727 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.645e-06/0.02709, allocations: 0 / 387 MB, free: 8.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.00132/0.02841, allocations: 265.5 kB / 387.3 MB, free: 8.461 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002303/0.02864, allocations: 221.5 kB / 387.5 MB, free: 8.195 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006086/0.02925, allocations: 370.1 kB / 387.9 MB, free: 7.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.435e-05/0.02929, allocations: 29.7 kB / 387.9 MB, free: 7.785 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003712/0.02966, allocations: 302.6 kB / 388.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.0299, allocations: 139.1 kB / 388.3 MB, free: 7.344 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002861/0.03019, allocations: 116 kB / 388.4 MB, free: 7.219 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004776/0.03067, allocations: 0.5313 MB / 389 MB, free: 6.676 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003987/0.03106, allocations: 93.27 kB / 389.1 MB, free: 6.586 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/0.03218, allocations: 0.5744 MB / 389.6 MB, free: 5.793 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.03383, allocations: 0.7139 MB / 390.3 MB, free: 4.859 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.717e-05/0.03385, allocations: 4 kB / 390.4 MB, free: 4.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001841/0.03569, allocations: 0.5562 MB / 390.9 MB, free: 4.293 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.03572, allocations: 12.06 kB / 390.9 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.385e-05/0.03576, allocations: 12.56 kB / 390.9 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.017e-05/0.03581, allocations: 16 kB / 390.9 MB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009502/0.03676, allocations: 143.8 kB / 391.1 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.692e-05/0.0368, allocations: 27.86 kB / 391.1 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005964/0.0374, allocations: 59.56 kB / 391.2 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.187e-05/0.03747, allocations: 32 kB / 391.2 MB, free: 3.996 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.0003588/0.03783, allocations: 220.3 kB / 391.4 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003256/0.03816, allocations: 51.73 kB / 391.5 MB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001243/0.03828, allocations: 33.8 kB / 391.5 MB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.67e-05/0.0383, allocations: 7.984 kB / 391.5 MB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.03831, allocations: 4.5 kB / 391.5 MB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.03832, allocations: 0 / 391.5 MB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002637/0.04096, allocations: 0.7105 MB / 392.2 MB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/0.04097, allocations: 4 kB / 392.2 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009467/0.04191, allocations: 87.89 kB / 392.3 MB, free: 2.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.199e-05/0.04192, allocations: 3.984 kB / 392.3 MB, free: 2.816 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-05/0.04197, allocations: 12 kB / 392.3 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-05/0.04198, allocations: 8.062 kB / 392.3 MB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.04198, allocations: 0 / 392.3 MB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.04385, allocations: 1.148 MB / 393.5 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.04396, allocations: 35.75 kB / 393.5 MB, free: 1.578 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.846e-05/0.04404, allocations: 8 kB / 393.5 MB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006429/0.04468, allocations: 4 kB / 393.5 MB, free: 1.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.04481, allocations: 31.83 kB / 393.6 MB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.655e-05/0.04484, allocations: 16 kB / 393.6 MB, free: 1.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003939/0.04524, allocations: 231 kB / 393.8 MB, free: 1.297 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.04524, allocations: 3.938 kB / 393.8 MB, free: 1.293 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001436/0.04667, allocations: 103.8 kB / 393.9 MB, free: 1.191 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.0002116/0.04689, allocations: 103.1 kB / 394 MB, free: 1.078 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.04804, allocations: 315.2 kB / 394.3 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.04804, allocations: 0 / 394.3 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003408/0.04839, allocations: 97.05 kB / 394.4 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001839/0.05022, allocations: 79.69 kB / 394.5 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00364/0.05386, allocations: 1.211 MB / 395.7 MB, free: 15.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.05428, allocations: 194.4 kB / 395.9 MB, free: 15.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003107/0.05459, allocations: 43.25 kB / 395.9 MB, free: 15.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.05473, allocations: 28.5 kB / 396 MB, free: 15.04 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.05473, allocations: 3.938 kB / 396 MB, free: 15.03 MB / 378.7 MB Notification: Performance of Templates: time 0.01442/0.06915, allocations: 2.896 MB / 398.9 MB, free: 12.2 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.119476133026183]