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.001567/0.001567, allocations: 182.1 kB / 13.66 MB, free: 1.664 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.066/2.066, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001146/0.001146, allocations: 86.64 kB / 267.5 MB, free: 14.11 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.2902/0.2902, allocations: 43.48 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.089e-05, allocations: 4 kB / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 58.86 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5057/0.6197, allocations: 86.86 MB / 0.5576 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.62, allocations: 77.23 kB / 0.5577 GB, free: 0.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02711/0.6471, allocations: 6.09 MB / 0.5636 GB, free: 11.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.6472, allocations: 0 / 0.5636 GB, free: 11.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.623e-05/0.6472, allocations: 8 kB / 0.5636 GB, free: 11.67 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.001254/0.6485, allocations: 0.5464 MB / 0.5642 GB, free: 11.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.6486, allocations: 12.03 kB / 0.5642 GB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.6487, allocations: 43.48 kB / 0.5642 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004433/0.6492, allocations: 255.8 kB / 0.5645 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/0.6492, allocations: 23.34 kB / 0.5645 GB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.6494, allocations: 48.28 kB / 0.5645 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000895/0.6503, allocations: 370.7 kB / 0.5649 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.951e-05/0.6503, allocations: 7.906 kB / 0.5649 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.335e-05/0.6504, allocations: 22.45 kB / 0.5649 GB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.6504, allocations: 11.94 kB / 0.5649 GB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005691/0.651, allocations: 195.3 kB / 0.5651 GB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003524/0.6545, allocations: 1.718 MB / 0.5668 GB, free: 8.633 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00059/0.6552, allocations: 242.6 kB / 0.567 GB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.6554, allocations: 89.09 kB / 0.5671 GB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.736e-05/0.6554, allocations: 8 kB / 0.5671 GB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.6555, allocations: 45.05 kB / 0.5672 GB, free: 8.223 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 4.659e-06/0.6555, allocations: 3.938 kB / 0.5672 GB, free: 8.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.000687/0.6562, allocations: 183.4 kB / 0.5673 GB, free: 8.062 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.6564, allocations: 216.7 kB / 0.5676 GB, free: 7.805 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003793/0.6568, allocations: 244.9 kB / 0.5678 GB, free: 7.594 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.6568, allocations: 32.89 kB / 0.5678 GB, free: 7.559 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/0.657, allocations: 299.2 kB / 0.5681 GB, free: 7.289 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.6572, allocations: 119.4 kB / 0.5682 GB, free: 7.188 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.486e-05/0.6572, allocations: 10.44 kB / 0.5682 GB, free: 7.188 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.6574, allocations: 336.9 kB / 0.5685 GB, free: 6.859 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.6577, allocations: 90.31 kB / 0.5686 GB, free: 6.801 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005207/0.6582, allocations: 408.4 kB / 0.569 GB, free: 6.285 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003952/0.6586, allocations: 159.5 kB / 0.5692 GB, free: 6.164 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.6587, allocations: 4 kB / 0.5692 GB, free: 6.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001177/0.6599, allocations: 490.8 kB / 0.5696 GB, free: 5.762 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.11e-05/0.6599, allocations: 20.05 kB / 0.5697 GB, free: 5.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/0.66, allocations: 8 kB / 0.5697 GB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.173e-05/0.66, allocations: 20.12 kB / 0.5697 GB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009035/0.6609, allocations: 150.4 kB / 0.5698 GB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.924e-05/0.661, allocations: 23.92 kB / 0.5699 GB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005801/0.6616, allocations: 66.69 kB / 0.5699 GB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.063e-05/0.6617, allocations: 31.56 kB / 0.57 GB, free: 5.465 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 () * 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.0001771/0.6619, allocations: 154.6 kB / 0.5701 GB, free: 5.324 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.6621, allocations: 31.62 kB / 0.5701 GB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.6622, allocations: 32.09 kB / 0.5702 GB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.6622, allocations: 4 kB / 0.5702 GB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.6623, allocations: 4 kB / 0.5702 GB, free: 5.266 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.6623, allocations: 0 / 0.5702 GB, free: 5.266 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.6643, allocations: 0.6523 MB / 0.5708 GB, free: 4.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.6644, allocations: 0 / 0.5708 GB, free: 4.629 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009592/0.6653, allocations: 91.2 kB / 0.5709 GB, free: 4.543 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-05/0.6654, allocations: 4 kB / 0.5709 GB, free: 4.539 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.331e-05/0.6654, allocations: 11.11 kB / 0.5709 GB, free: 4.531 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.738e-05/0.6655, allocations: 4 kB / 0.5709 GB, free: 4.527 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/0.6655, allocations: 3.938 kB / 0.5709 GB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.6665, allocations: 0.8984 MB / 0.5718 GB, free: 3.605 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.6667, allocations: 112.8 kB / 0.5719 GB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.189e-05/0.6668, allocations: 15.2 kB / 0.5719 GB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005333/0.6673, allocations: 16 kB / 0.5719 GB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.887e-05/0.6674, allocations: 23.16 kB / 0.572 GB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.6674, allocations: 15.8 kB / 0.572 GB, free: 3.422 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002584/0.6677, allocations: 178.8 kB / 0.5721 GB, free: 3.277 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.6677, allocations: 0 / 0.5721 GB, free: 3.277 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009974/0.6687, allocations: 105.2 kB / 0.5722 GB, free: 3.188 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete 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.0001838/0.6689, allocations: 106.2 kB / 0.5723 GB, free: 3.078 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007327/0.6697, allocations: 270.1 kB / 0.5726 GB, free: 2.867 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.6697, allocations: 3.938 kB / 0.5726 GB, free: 2.863 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002048/0.6699, allocations: 81.73 kB / 0.5727 GB, free: 2.797 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009447/0.6709, allocations: 58.3 kB / 0.5727 GB, free: 2.758 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003455/0.6744, allocations: 1.553 MB / 0.5742 GB, free: 1.203 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.6749, allocations: 0.8063 MB / 0.575 GB, free: 384 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.6751, allocations: 27.44 kB / 0.5751 GB, free: 356 kB / 378.7 MB Notification: Performance of SimCode: time 1.422e-06/0.6751, allocations: 0 / 0.5751 GB, free: 356 kB / 378.7 MB Notification: Performance of Templates: time 0.01073/0.6858, allocations: 3.988 MB / 0.579 GB, free: 12.42 MB / 394.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