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.001232/0.001232, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001141/0.001141, allocations: 166 kB / 24.82 MB, free: 9.266 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.098/1.098, allocations: 177.1 MB / 205.3 MB, free: 5.465 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.3226/0.3226, allocations: 32.81 MB / 294.6 MB, free: 1.246 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 3.767e-06/3.767e-06, allocations: 4 kB / 376.5 MB, free: 4.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.198e-05/2.575e-05, allocations: 6.312 kB / 376.5 MB, free: 4.422 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004521/0.004547, allocations: 2.829 MB / 379.3 MB, free: 1.574 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.006286, allocations: 0.7632 MB / 380.1 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002617/0.006547, allocations: 11.94 kB / 380.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.006788, allocations: 55.39 kB / 380.1 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003292/0.007118, allocations: 138.8 kB / 380.3 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.007568, allocations: 107.8 kB / 380.4 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006122/0.00818, allocations: 457.6 kB / 380.8 MB, free: 48 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.008454, allocations: 98.12 kB / 380.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005253/0.008979, allocations: 263.4 kB / 381.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002666/0.009245, allocations: 131.6 kB / 381.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.197e-05/0.009307, allocations: 36 kB / 381.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.009418, allocations: 36 kB / 381.4 MB, free: 15.48 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.298e-05/0.009491, allocations: 75.73 kB / 381.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.00965, allocations: 139.7 kB / 381.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004327/0.01008, allocations: 290.8 kB / 381.9 MB, free: 14.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.01009, allocations: 4 kB / 381.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.01009, allocations: 0 / 381.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.01009, allocations: 4 kB / 381.9 MB, free: 14.98 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.0009427/0.01104, allocations: 0.6793 MB / 382.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/0.01109, allocations: 12.03 kB / 382.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002985/0.01139, allocations: 88.64 kB / 382.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/0.0117, allocations: 232.4 kB / 382.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.01172, allocations: 29.38 kB / 382.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.129e-05/0.01178, allocations: 48.25 kB / 382.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003476/0.01212, allocations: 336.8 kB / 383.3 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.01214, allocations: 16.11 kB / 383.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.01217, allocations: 16.38 kB / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.01218, allocations: 11.94 kB / 383.3 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.01231, allocations: 118.5 kB / 383.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/0.01368, allocations: 1.975 MB / 385.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.01394, allocations: 277.7 kB / 385.7 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.894e-05/0.01401, allocations: 89.81 kB / 385.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.01403, allocations: 8 kB / 385.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.01406, allocations: 49.33 kB / 385.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.923e-06/0.01406, allocations: 0 / 385.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003204/0.01438, allocations: 201.4 kB / 386 MB, free: 10.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.375e-05/0.01447, allocations: 217.6 kB / 386.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.01464, allocations: 314 kB / 386.5 MB, free: 9.902 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.01466, allocations: 25.7 kB / 386.6 MB, free: 9.871 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.01479, allocations: 302.5 kB / 386.9 MB, free: 9.566 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.796e-05/0.01486, allocations: 127 kB / 387 MB, free: 9.441 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.871e-05/0.01494, allocations: 107.9 kB / 387.1 MB, free: 9.324 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.0151, allocations: 0.516 MB / 387.6 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.96e-05/0.01515, allocations: 45.27 kB / 387.6 MB, free: 8.754 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002746/0.01542, allocations: 0.5079 MB / 388.2 MB, free: 8.027 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004055/0.01583, allocations: 0.6201 MB / 388.8 MB, free: 7.188 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.01583, allocations: 4 kB / 388.8 MB, free: 7.184 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0003998/0.01623, allocations: 458 kB / 389.2 MB, free: 6.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.01625, allocations: 8 kB / 389.2 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.01626, allocations: 12 kB / 389.2 MB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.01628, allocations: 16 kB / 389.3 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002349/0.01651, allocations: 147.7 kB / 389.4 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.01653, allocations: 23.88 kB / 389.4 MB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.01667, allocations: 63.55 kB / 389.5 MB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.01669, allocations: 28 kB / 389.5 MB, free: 6.438 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.0001146/0.01681, allocations: 208.4 kB / 389.7 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.286e-05/0.01689, allocations: 47.69 kB / 389.8 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.78e-05/0.01694, allocations: 33.8 kB / 389.8 MB, free: 6.141 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.01694, allocations: 4 kB / 389.8 MB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.01695, allocations: 4 kB / 389.8 MB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.01695, allocations: 0 / 389.8 MB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006872/0.01764, allocations: 0.6017 MB / 390.4 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.01764, allocations: 0 / 390.4 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.01787, allocations: 87.89 kB / 390.5 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.01787, allocations: 4.062 kB / 390.5 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.01789, allocations: 15.98 kB / 390.5 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.0179, allocations: 4.438 kB / 390.5 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.0179, allocations: 4 kB / 390.5 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005044/0.0184, allocations: 1.089 MB / 391.6 MB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.996e-05/0.01843, allocations: 31.75 kB / 391.6 MB, free: 4.219 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.01846, allocations: 8 kB / 391.7 MB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.01863, allocations: 8 kB / 391.7 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.01867, allocations: 27.89 kB / 391.7 MB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.01868, allocations: 15.94 kB / 391.7 MB, free: 4.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.464e-05/0.01877, allocations: 198.9 kB / 391.9 MB, free: 3.969 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01877, allocations: 0 / 391.9 MB, free: 3.969 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004327/0.0192, allocations: 103.8 kB / 392 MB, free: 3.867 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 9.2e-05/0.01929, allocations: 102.3 kB / 392.1 MB, free: 3.758 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002395/0.01953, allocations: 228 kB / 392.3 MB, free: 3.535 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01953, allocations: 0 / 392.3 MB, free: 3.535 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.787e-05/0.0196, allocations: 76.08 kB / 392.4 MB, free: 3.457 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006446/0.02024, allocations: 73.77 kB / 392.5 MB, free: 3.383 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.02156, allocations: 1.199 MB / 393.7 MB, free: 2.117 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.839e-05/0.02164, allocations: 100.6 kB / 393.8 MB, free: 2 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.307e-05/0.02174, allocations: 47.25 kB / 393.8 MB, free: 1.953 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.02186, allocations: 134.2 kB / 393.9 MB, free: 1.82 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.02187, allocations: 0 / 393.9 MB, free: 1.82 MB / 362.7 MB Notification: Performance of Templates: time 0.005447/0.02731, allocations: 3.181 MB / 397.1 MB, free: 14.7 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.356763947289437]