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.001983/0.001983, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002169/0.002169, allocations: 165.3 kB / 24.28 MB, free: 152 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.613/1.613, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.3418/0.3418, allocations: 32.79 MB / 293.9 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 1.563e-06/1.563e-06, allocations: 0 / 375.2 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.858e-05/3.015e-05, allocations: 6.25 kB / 375.2 MB, free: 5 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004703/0.004733, allocations: 2.836 MB / 378.1 MB, free: 2.148 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.006395, allocations: 0.7439 MB / 378.8 MB, free: 1.398 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002769/0.006672, allocations: 11.94 kB / 378.8 MB, free: 1.387 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002305/0.006903, allocations: 67.31 kB / 378.9 MB, free: 1.32 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000363/0.007266, allocations: 134.8 kB / 379 MB, free: 1.188 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.007631, allocations: 107.8 kB / 379.1 MB, free: 1.082 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005821/0.008213, allocations: 453.6 kB / 379.6 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.00844, allocations: 106.1 kB / 379.7 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004109/0.008851, allocations: 255.5 kB / 379.9 MB, free: 280 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.009087, allocations: 131.6 kB / 380.1 MB, free: 148 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.855e-05/0.009146, allocations: 43.94 kB / 380.1 MB, free: 104 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.509e-05/0.009241, allocations: 32 kB / 380.1 MB, free: 72 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.414e-05/0.009335, allocations: 75.78 kB / 380.2 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.009509, allocations: 143.6 kB / 380.4 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005736/0.01008, allocations: 446.5 kB / 380.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.01009, allocations: 0 / 380.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01009, allocations: 0 / 380.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.01009, allocations: 0 / 380.8 MB, free: 15.42 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.001118/0.01121, allocations: 0.7025 MB / 381.5 MB, free: 14.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.01125, allocations: 8.031 kB / 381.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.01154, allocations: 92.62 kB / 381.6 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003452/0.01189, allocations: 224.4 kB / 381.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/0.01192, allocations: 29.38 kB / 381.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-05/0.01201, allocations: 48.31 kB / 381.9 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007949/0.0128, allocations: 420.2 kB / 382.3 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.907e-05/0.01283, allocations: 12.14 kB / 382.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.01287, allocations: 20.36 kB / 382.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.01288, allocations: 15.94 kB / 382.3 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004503/0.01333, allocations: 211.7 kB / 382.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.01606, allocations: 2.057 MB / 384.6 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005351/0.01659, allocations: 321.8 kB / 384.9 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.01678, allocations: 105.7 kB / 385 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.01681, allocations: 7.984 kB / 385 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.01684, allocations: 49.33 kB / 385.1 MB, free: 10.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.342e-06/0.01685, allocations: 0 / 385.1 MB, free: 10.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0007001/0.01755, allocations: 269.5 kB / 385.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.01769, allocations: 209.6 kB / 385.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003802/0.01807, allocations: 370.1 kB / 385.9 MB, free: 9.895 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.0181, allocations: 29.7 kB / 385.9 MB, free: 9.859 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/0.01834, allocations: 306.7 kB / 386.2 MB, free: 9.551 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.01847, allocations: 139 kB / 386.4 MB, free: 9.414 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/0.01864, allocations: 120 kB / 386.5 MB, free: 9.285 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003055/0.01894, allocations: 0.5235 MB / 387 MB, free: 8.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.01914, allocations: 93.27 kB / 387.1 MB, free: 8.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006422/0.01979, allocations: 0.5782 MB / 387.7 MB, free: 7.863 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000933/0.02072, allocations: 0.7178 MB / 388.4 MB, free: 6.926 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.02073, allocations: 4 kB / 388.4 MB, free: 6.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001057/0.02178, allocations: 0.549 MB / 389 MB, free: 6.367 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.0218, allocations: 12.03 kB / 389 MB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.722e-05/0.02183, allocations: 12 kB / 389 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.974e-05/0.02186, allocations: 16 kB / 389 MB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.02231, allocations: 147.7 kB / 389.1 MB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.928e-05/0.02234, allocations: 23.88 kB / 389.2 MB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.02262, allocations: 63.56 kB / 389.2 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.761e-05/0.02267, allocations: 35.98 kB / 389.3 MB, free: 6.062 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.0002265/0.0229, allocations: 220.3 kB / 389.5 MB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000163/0.02306, allocations: 47.75 kB / 389.5 MB, free: 5.789 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.453e-05/0.02313, allocations: 37.78 kB / 389.6 MB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/0.02314, allocations: 4 kB / 389.6 MB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.02315, allocations: 4 kB / 389.6 MB, free: 5.742 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.02315, allocations: 0.5 kB / 389.6 MB, free: 5.742 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.02452, allocations: 0.7144 MB / 390.3 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.02452, allocations: 4 kB / 390.3 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004642/0.02499, allocations: 87.89 kB / 390.4 MB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.02499, allocations: 3.938 kB / 390.4 MB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.02502, allocations: 12 kB / 390.4 MB, free: 4.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.02502, allocations: 8.062 kB / 390.4 MB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.02502, allocations: 0 / 390.4 MB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.02603, allocations: 1.152 MB / 391.5 MB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.353e-05/0.02609, allocations: 31.75 kB / 391.6 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.02613, allocations: 11.98 kB / 391.6 MB, free: 3.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.02645, allocations: 8 kB / 391.6 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.397e-05/0.02652, allocations: 27.84 kB / 391.6 MB, free: 3.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.02654, allocations: 15.98 kB / 391.6 MB, free: 3.582 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002202/0.02676, allocations: 231 kB / 391.9 MB, free: 3.359 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02677, allocations: 0 / 391.9 MB, free: 3.359 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006971/0.02746, allocations: 103.8 kB / 392 MB, free: 3.258 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.0001315/0.02759, allocations: 106 kB / 392.1 MB, free: 3.145 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005853/0.02818, allocations: 312 kB / 392.4 MB, free: 2.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.02818, allocations: 0 / 392.4 MB, free: 2.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001793/0.02836, allocations: 100.3 kB / 392.5 MB, free: 2.738 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009581/0.02932, allocations: 65.3 kB / 392.5 MB, free: 2.672 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.03124, allocations: 1.223 MB / 393.8 MB, free: 1.383 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.0315, allocations: 198.3 kB / 394 MB, free: 1.172 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001532/0.03165, allocations: 43.27 kB / 394 MB, free: 1.129 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.58e-05/0.03172, allocations: 28.48 kB / 394 MB, free: 1.102 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.03172, allocations: 0 / 394 MB, free: 1.102 MB / 362.7 MB Notification: Performance of Templates: time 0.007683/0.0394, allocations: 2.889 MB / 396.9 MB, free: 14.27 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.084027322940528]