Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00157/0.00157, allocations: 189 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.087/2.087, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001135, allocations: 90.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3062/0.3062, allocations: 43.55 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004869/0.0004871, allocations: 12 kB / 431.4 MB, free: 20.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1176, allocations: 58.86 MB / 490.2 MB, free: 9.352 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.003952/0.1216, allocations: 2.265 MB / 492.5 MB, free: 7.066 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.1235, allocations: 0.7376 MB / 493.2 MB, free: 6.32 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002792/0.1238, allocations: 8 kB / 493.2 MB, free: 6.312 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 9.909e-05/0.1239, allocations: 39.62 kB / 493.3 MB, free: 6.273 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004216/0.1244, allocations: 127.6 kB / 493.4 MB, free: 6.148 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.1247, allocations: 75.91 kB / 493.5 MB, free: 6.074 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005963/0.1253, allocations: 315.7 kB / 493.8 MB, free: 5.766 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000331/0.1257, allocations: 137.4 kB / 493.9 MB, free: 5.633 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002963/0.126, allocations: 135.5 kB / 494 MB, free: 5.5 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002936/0.1263, allocations: 163.2 kB / 494.2 MB, free: 5.34 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.378e-05/0.1264, allocations: 16 kB / 494.2 MB, free: 5.324 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.375e-05/0.1265, allocations: 23.94 kB / 494.2 MB, free: 5.301 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.426e-05/0.1266, allocations: 67.75 kB / 494.3 MB, free: 5.234 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.1267, allocations: 97.45 kB / 494.4 MB, free: 5.133 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004712/0.1272, allocations: 315.3 kB / 494.7 MB, free: 4.824 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1272, allocations: 4 kB / 494.7 MB, free: 4.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1272, allocations: 0 / 494.7 MB, free: 4.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1272, allocations: 0 / 494.7 MB, free: 4.82 MB / 330.7 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.001362/0.1286, allocations: 0.6044 MB / 495.3 MB, free: 4.164 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.1287, allocations: 12.02 kB / 495.3 MB, free: 4.152 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.1288, allocations: 47.39 kB / 495.4 MB, free: 4.105 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.1293, allocations: 283.4 kB / 495.6 MB, free: 3.785 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.1293, allocations: 29 kB / 495.7 MB, free: 3.758 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.906e-05/0.1294, allocations: 39.91 kB / 495.7 MB, free: 3.719 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.1305, allocations: 385 kB / 496.1 MB, free: 3.324 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.596e-05/0.1306, allocations: 7.938 kB / 496.1 MB, free: 3.316 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.134e-05/0.1306, allocations: 16 kB / 496.1 MB, free: 3.301 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.1307, allocations: 8 kB / 496.1 MB, free: 3.293 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008928/0.1316, allocations: 259.8 kB / 496.4 MB, free: 3.039 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002665/0.1343, allocations: 1.12 MB / 497.5 MB, free: 1.859 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009294/0.1352, allocations: 355.5 kB / 497.8 MB, free: 1.484 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.557e-05/0.1353, allocations: 4 kB / 497.8 MB, free: 1.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.1354, allocations: 38.56 kB / 497.9 MB, free: 1.434 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 3.477e-06/0.1354, allocations: 3.938 kB / 497.9 MB, free: 1.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=57): time 0.006454/0.1418, allocations: 2.471 MB / 0.4886 GB, free: 14.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.054e-05/0.142, allocations: 110.8 kB / 0.4887 GB, free: 14.56 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003533/0.1423, allocations: 242.5 kB / 0.489 GB, free: 14.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.704e-05/0.1424, allocations: 41.7 kB / 0.489 GB, free: 14.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.1426, allocations: 239.1 kB / 0.4892 GB, free: 14.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.1428, allocations: 189.1 kB / 0.4894 GB, free: 13.85 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.1429, allocations: 12 kB / 0.4894 GB, free: 13.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.143, allocations: 338.8 kB / 0.4897 GB, free: 13.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004834/0.1435, allocations: 133.1 kB / 0.4899 GB, free: 13.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000544/0.1441, allocations: 231.8 kB / 0.4901 GB, free: 13.11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005632/0.1447, allocations: 175.9 kB / 0.4903 GB, free: 12.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1447, allocations: 0 / 0.4903 GB, free: 12.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001738/0.1464, allocations: 0.5384 MB / 0.4908 GB, free: 12.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.1465, allocations: 15.48 kB / 0.4908 GB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.1465, allocations: 4 kB / 0.4908 GB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000605/0.1471, allocations: 126.4 kB / 0.4909 GB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007375/0.1479, allocations: 99.88 kB / 0.491 GB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005855/0.1538, allocations: 4.716 MB / 0.4956 GB, free: 7.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004319/0.1543, allocations: 23.98 kB / 0.4956 GB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.131e-05/0.1543, allocations: 24.06 kB / 0.4957 GB, free: 6.969 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002862/0.1546, allocations: 166 kB / 0.4958 GB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.1548, allocations: 35.58 kB / 0.4959 GB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/0.1549, allocations: 50.17 kB / 0.4959 GB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.1549, allocations: 8 kB / 0.4959 GB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/0.1549, allocations: 0 / 0.4959 GB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.155, allocations: 7.984 kB / 0.4959 GB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.1582, allocations: 1.34 MB / 0.4972 GB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.1582, allocations: 0 / 0.4972 GB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008229/0.159, allocations: 99.84 kB / 0.4973 GB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004805/0.1595, allocations: 98.55 kB / 0.4974 GB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.724e-05/0.1596, allocations: 15.98 kB / 0.4974 GB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00462/0.1642, allocations: 4.139 MB / 0.5015 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1643, allocations: 3.938 kB / 0.5015 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002375/0.1667, allocations: 0.9965 MB / 0.5025 GB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.1669, allocations: 112.7 kB / 0.5026 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.556e-05/0.167, allocations: 12 kB / 0.5026 GB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004512/0.1675, allocations: 19.98 kB / 0.5026 GB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.1676, allocations: 39.95 kB / 0.5026 GB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.594e-05/0.1677, allocations: 23.98 kB / 0.5027 GB, free: 15.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002441/0.168, allocations: 166 kB / 0.5028 GB, free: 15.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.168, allocations: 0 / 0.5028 GB, free: 15.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001037/0.169, allocations: 124 kB / 0.5029 GB, free: 14.95 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001907/0.1692, allocations: 111.1 kB / 0.503 GB, free: 14.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002048/0.1713, allocations: 0.7733 MB / 0.5038 GB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/0.1714, allocations: 4 kB / 0.5038 GB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001356/0.1727, allocations: 0.5741 MB / 0.5044 GB, free: 13.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007797/0.1735, allocations: 57.45 kB / 0.5044 GB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.1767, allocations: 1.337 MB / 0.5057 GB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.1773, allocations: 0.8327 MB / 0.5065 GB, free: 11.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.1775, allocations: 27.44 kB / 0.5066 GB, free: 11.07 MB / 362.7 MB Notification: Performance of SimCode: time 9.11e-07/0.1775, allocations: 0 / 0.5066 GB, free: 11.07 MB / 362.7 MB Notification: Performance of Templates: time 0.01723/0.1948, allocations: 8.782 MB / 0.5151 GB, free: 2.277 MB / 362.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches