Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2117/0.2117, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 67.09 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1059, allocations: 60.82 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.003944/0.1099, allocations: 2.832 MB / 472.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.111, allocations: 0.7128 MB / 472.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.1111, allocations: 11.94 kB / 472.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.1113, allocations: 67.33 kB / 472.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002083/0.1116, allocations: 118.9 kB / 473 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.1118, allocations: 87.89 kB / 473.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003977/0.1122, allocations: 446.3 kB / 473.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.1125, allocations: 190.1 kB / 473.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000194/0.1127, allocations: 171.4 kB / 473.9 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.1129, allocations: 187.2 kB / 474 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.489e-05/0.113, allocations: 40 kB / 474.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.1131, allocations: 36 kB / 474.1 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.913e-05/0.1132, allocations: 87.62 kB / 474.2 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.1133, allocations: 199 kB / 474.4 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000357/0.1137, allocations: 442.7 kB / 474.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1137, allocations: 0 / 474.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1137, allocations: 4 kB / 474.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1137, allocations: 0 / 474.8 MB, free: 8.766 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0009615/0.1147, allocations: 0.6629 MB / 475.5 MB, free: 8.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.1147, allocations: 12.03 kB / 475.5 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.42e-05/0.1148, allocations: 44.38 kB / 475.5 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.1151, allocations: 284.6 kB / 475.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.1152, allocations: 29.38 kB / 475.9 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.189e-05/0.1152, allocations: 40.38 kB / 475.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006142/0.1158, allocations: 397.3 kB / 476.3 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.1159, allocations: 3.906 kB / 476.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.21e-05/0.1159, allocations: 16 kB / 476.3 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1159, allocations: 8 kB / 476.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004649/0.1164, allocations: 243.8 kB / 476.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.1179, allocations: 1.112 MB / 477.7 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00052/0.1184, allocations: 347.5 kB / 478 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.1187, allocations: 178.4 kB / 478.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.1187, allocations: 4 kB / 478.2 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.1188, allocations: 42.56 kB / 478.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.593e-06/0.1188, allocations: 0 / 478.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003694/0.1225, allocations: 2.441 MB / 480.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.1226, allocations: 106.8 kB / 480.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002503/0.1228, allocations: 242.6 kB / 481 MB, free: 2.086 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.1229, allocations: 37.7 kB / 481 MB, free: 2.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.123, allocations: 180.7 kB / 481.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.1231, allocations: 197 kB / 481.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1232, allocations: 82.25 kB / 481.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1233, allocations: 354.7 kB / 481.8 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002451/0.1236, allocations: 129.1 kB / 482 MB, free: 1.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003017/0.1239, allocations: 235.8 kB / 482.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.1245, allocations: 397.9 kB / 482.6 MB, free: 416 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.1245, allocations: 4 kB / 482.6 MB, free: 412 kB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009381/0.1254, allocations: 0.5576 MB / 483.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.1255, allocations: 11.98 kB / 483.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.1255, allocations: 4 kB / 483.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003723/0.1259, allocations: 118.6 kB / 483.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003706/0.1262, allocations: 107.8 kB / 483.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004256/0.1305, allocations: 5.213 MB / 488.6 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002202/0.1307, allocations: 19.98 kB / 488.6 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.1308, allocations: 16 kB / 488.6 MB, free: 9.918 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001999/0.131, allocations: 165.8 kB / 488.8 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.625e-05/0.1311, allocations: 39.62 kB / 488.8 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.414e-05/0.1312, allocations: 46.17 kB / 488.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.1312, allocations: 8 kB / 488.9 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.781e-05/0.1312, allocations: 7.938 kB / 488.9 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.1312, allocations: 3.984 kB / 488.9 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.1331, allocations: 1.331 MB / 490.2 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.1331, allocations: 3.984 kB / 490.2 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003814/0.1335, allocations: 95.89 kB / 490.3 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002605/0.1337, allocations: 98.59 kB / 490.4 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.1338, allocations: 15.94 kB / 490.4 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003296/0.1371, allocations: 4.431 MB / 494.9 MB, free: 3.164 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1371, allocations: 4.031 kB / 494.9 MB, free: 3.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.1383, allocations: 0.927 MB / 495.8 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.504e-05/0.1384, allocations: 104.6 kB / 495.9 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.114e-05/0.1385, allocations: 12.06 kB / 495.9 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.1388, allocations: 19.98 kB / 495.9 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.1389, allocations: 51.81 kB / 496 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.1389, allocations: 16 kB / 496 MB, free: 1.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001569/0.1391, allocations: 174 kB / 496.2 MB, free: 1.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1391, allocations: 0 / 496.2 MB, free: 1.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006681/0.1397, allocations: 120 kB / 496.3 MB, free: 1.691 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001644/0.1399, allocations: 107.4 kB / 496.4 MB, free: 1.574 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.1412, allocations: 0.7986 MB / 497.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.1412, allocations: 0 / 497.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006985/0.1419, allocations: 0.5742 MB / 497.8 MB, free: 128 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006877/0.1426, allocations: 70.62 kB / 497.8 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.1444, allocations: 1.076 MB / 498.9 MB, free: 14.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.1448, allocations: 0.828 MB / 499.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.145, allocations: 31.27 kB / 499.8 MB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.409e-05/0.145, allocations: 35.42 kB / 499.8 MB, free: 14.03 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.145, allocations: 0 / 499.8 MB, free: 14.03 MB / 382.1 MB Notification: Performance of Templates: time 0.00827/0.1533, allocations: 4.456 MB / 0.4924 GB, free: 9.586 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches