Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002249/0.002254, allocations: 182.9 kB / 16.4 MB, free: 5.754 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.13/2.13, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001141/0.001141, allocations: 94.86 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5096/0.5096, allocations: 43.55 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004639/0.0004639, allocations: 16 kB / 431.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1267, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003984/0.1308, allocations: 2.268 MB / 492.5 MB, free: 8.953 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.1326, allocations: 0.7298 MB / 493.2 MB, free: 8.215 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002496/0.1329, allocations: 11.94 kB / 493.2 MB, free: 8.203 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.1331, allocations: 39.69 kB / 493.3 MB, free: 8.164 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004246/0.1335, allocations: 135.6 kB / 493.4 MB, free: 8.031 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.1338, allocations: 63.92 kB / 493.4 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005967/0.1345, allocations: 299.4 kB / 493.7 MB, free: 7.676 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.1348, allocations: 112.1 kB / 493.8 MB, free: 7.559 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002925/0.1351, allocations: 143.5 kB / 494 MB, free: 7.418 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002885/0.1354, allocations: 155.3 kB / 494.1 MB, free: 7.266 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.868e-05/0.1354, allocations: 20 kB / 494.2 MB, free: 7.246 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.013e-05/0.1355, allocations: 16 kB / 494.2 MB, free: 7.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.514e-05/0.1356, allocations: 63.7 kB / 494.2 MB, free: 7.168 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.1358, allocations: 97.52 kB / 494.3 MB, free: 7.066 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004806/0.1363, allocations: 303.4 kB / 494.6 MB, free: 6.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.1363, allocations: 0 / 494.6 MB, free: 6.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.1363, allocations: 0 / 494.6 MB, free: 6.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.1364, allocations: 4 kB / 494.6 MB, free: 6.766 MB / 378.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.001302/0.1377, allocations: 0.5848 MB / 495.2 MB, free: 6.133 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.1377, allocations: 19.97 kB / 495.2 MB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.1379, allocations: 39.53 kB / 495.3 MB, free: 6.074 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.1383, allocations: 275.1 kB / 495.5 MB, free: 5.766 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.7e-05/0.1384, allocations: 28.98 kB / 495.6 MB, free: 5.738 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.1385, allocations: 44 kB / 495.6 MB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009834/0.1395, allocations: 394.1 kB / 496 MB, free: 5.273 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.861e-05/0.1395, allocations: 11.84 kB / 496 MB, free: 5.262 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.062e-05/0.1396, allocations: 16 kB / 496 MB, free: 5.246 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.1396, allocations: 8 kB / 496 MB, free: 5.238 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007792/0.1404, allocations: 227.7 kB / 496.3 MB, free: 5.016 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003657/0.1441, allocations: 1.723 MB / 498 MB, free: 3.184 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007018/0.1448, allocations: 266.4 kB / 498.2 MB, free: 2.859 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/0.1449, allocations: 12.02 kB / 498.3 MB, free: 2.848 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.145, allocations: 42.56 kB / 498.3 MB, free: 2.797 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 3.396e-06/0.145, allocations: 0 / 498.3 MB, free: 2.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.001077/0.1461, allocations: 265.4 kB / 498.6 MB, free: 2.531 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.1462, allocations: 221.6 kB / 498.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003984/0.1466, allocations: 270.8 kB / 499 MB, free: 1.996 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.1467, allocations: 33.7 kB / 499.1 MB, free: 1.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.1469, allocations: 297.7 kB / 499.4 MB, free: 1.664 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.147, allocations: 114.5 kB / 499.5 MB, free: 1.551 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.871e-05/0.1471, allocations: 12 kB / 499.5 MB, free: 1.539 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1472, allocations: 334.8 kB / 499.8 MB, free: 1.203 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003562/0.1476, allocations: 101.3 kB / 499.9 MB, free: 1.105 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006269/0.1482, allocations: 424.8 kB / 0.4886 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005056/0.1487, allocations: 175.8 kB / 0.4888 GB, free: 368 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.1488, allocations: 0 / 0.4888 GB, free: 368 kB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.3633/0.5121, allocations: 0.5163 MB / 0.4893 GB, free: 41.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.5122, allocations: 9.25 kB / 0.4893 GB, free: 41.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.47e-05/0.5122, allocations: 11.22 kB / 0.4893 GB, free: 41.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.411e-05/0.5123, allocations: 21.27 kB / 0.4893 GB, free: 41.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008612/0.5131, allocations: 153.5 kB / 0.4895 GB, free: 41.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.598e-05/0.5132, allocations: 23.09 kB / 0.4895 GB, free: 41.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004861/0.5137, allocations: 64 kB / 0.4895 GB, free: 41.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.143e-05/0.5138, allocations: 35.67 kB / 0.4896 GB, free: 41.96 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002473/0.514, allocations: 182.6 kB / 0.4897 GB, free: 41.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001954/0.5142, allocations: 34.36 kB / 0.4898 GB, free: 41.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.101e-05/0.5143, allocations: 35.62 kB / 0.4898 GB, free: 41.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-06/0.5143, allocations: 4.406 kB / 0.4898 GB, free: 41.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.5144, allocations: 2.844 kB / 0.4898 GB, free: 41.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.5144, allocations: 7.5 kB / 0.4898 GB, free: 41.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001913/0.5163, allocations: 0.6495 MB / 0.4905 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.5163, allocations: 2 kB / 0.4905 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000948/0.5173, allocations: 92.06 kB / 0.4905 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-06/0.5173, allocations: 5.844 kB / 0.4906 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.946e-05/0.5174, allocations: 11.72 kB / 0.4906 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.837e-06/0.5174, allocations: 4.047 kB / 0.4906 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.5174, allocations: 2.25 kB / 0.4906 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.5185, allocations: 0.9406 MB / 0.4915 GB, free: 40.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.5186, allocations: 108.7 kB / 0.4916 GB, free: 40.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.863e-05/0.5187, allocations: 12.38 kB / 0.4916 GB, free: 40.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005249/0.5192, allocations: 13.48 kB / 0.4916 GB, free: 40.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.552e-05/0.5193, allocations: 32.5 kB / 0.4917 GB, free: 40.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.5194, allocations: 9.375 kB / 0.4917 GB, free: 40.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002493/0.5196, allocations: 183.9 kB / 0.4918 GB, free: 40.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5196, allocations: 1.062 kB / 0.4918 GB, free: 40.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001112/0.5208, allocations: 95.34 kB / 0.4919 GB, free: 40.54 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001375/0.5209, allocations: 110.1 kB / 0.492 GB, free: 40.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009309/0.5219, allocations: 294.8 kB / 0.4923 GB, free: 40.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5219, allocations: 0 / 0.4923 GB, free: 40.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.5222, allocations: 91.36 kB / 0.4924 GB, free: 40.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.5232, allocations: 60.23 kB / 0.4925 GB, free: 40.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003697/0.527, allocations: 1.924 MB / 0.4943 GB, free: 39.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.5274, allocations: 0.8072 MB / 0.4951 GB, free: 38.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.5276, allocations: 31.12 kB / 0.4952 GB, free: 38.34 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.5276, allocations: 0 / 0.4952 GB, free: 38.34 MB / 378.7 MB Notification: Performance of Templates: time 0.01051/0.5381, allocations: 3.982 MB / 0.499 GB, free: 38.04 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches