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.00148/0.00148, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.977/1.977, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001106/0.001105, allocations: 96.41 kB / 270.9 MB, free: 8.383 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.5189/0.5189, allocations: 43.54 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006242/0.0006243, allocations: 16 kB / 431.4 MB, free: 6.207 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1263, allocations: 58.85 MB / 490.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4754/0.6017, allocations: 86.98 MB / 0.5637 GB, free: 15.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.602, allocations: 71.95 kB / 0.5637 GB, free: 15.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02666/0.6287, allocations: 6.265 MB / 0.5699 GB, free: 9.449 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.6287, allocations: 0 / 0.5699 GB, free: 9.449 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.61e-05/0.6288, allocations: 8 kB / 0.5699 GB, free: 9.441 MB / 394.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.001304/0.6301, allocations: 0.6036 MB / 0.5704 GB, free: 8.793 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.6301, allocations: 8.562 kB / 0.5705 GB, free: 8.785 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.6303, allocations: 43.52 kB / 0.5705 GB, free: 8.742 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004785/0.6308, allocations: 280.2 kB / 0.5708 GB, free: 8.426 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.926e-05/0.6308, allocations: 33 kB / 0.5708 GB, free: 8.395 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.6309, allocations: 39.91 kB / 0.5708 GB, free: 8.355 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.632, allocations: 382 kB / 0.5712 GB, free: 7.965 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/0.6321, allocations: 4 kB / 0.5712 GB, free: 7.961 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.139e-05/0.6321, allocations: 16 kB / 0.5712 GB, free: 7.945 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.132e-05/0.6322, allocations: 23.94 kB / 0.5712 GB, free: 7.922 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008714/0.633, allocations: 250 kB / 0.5715 GB, free: 7.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.6354, allocations: 1.1 MB / 0.5726 GB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009067/0.6364, allocations: 355.6 kB / 0.5729 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.431e-05/0.6364, allocations: 4 kB / 0.5729 GB, free: 6.141 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.6365, allocations: 51.19 kB / 0.5729 GB, free: 6.082 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 6.903e-06/0.6365, allocations: 3.984 kB / 0.5729 GB, free: 6.078 MB / 394.7 MB Notification: Performance of matching and sorting (n=57): time 0.006156/0.6427, allocations: 2.479 MB / 0.5754 GB, free: 3.336 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.6428, allocations: 110 kB / 0.5755 GB, free: 3.207 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000326/0.6431, allocations: 209.8 kB / 0.5757 GB, free: 3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.923e-05/0.6432, allocations: 45.64 kB / 0.5757 GB, free: 2.949 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.6433, allocations: 239.1 kB / 0.5759 GB, free: 2.711 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.6436, allocations: 193.1 kB / 0.5761 GB, free: 2.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.049e-05/0.6436, allocations: 12 kB / 0.5761 GB, free: 2.508 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.6438, allocations: 334.8 kB / 0.5765 GB, free: 2.172 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004702/0.6443, allocations: 137.1 kB / 0.5766 GB, free: 2.039 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005389/0.6448, allocations: 231.8 kB / 0.5768 GB, free: 1.777 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005383/0.6454, allocations: 165.9 kB / 0.577 GB, free: 1.617 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.6454, allocations: 4 kB / 0.577 GB, free: 1.613 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001685/0.6471, allocations: 0.5535 MB / 0.5775 GB, free: 1.047 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.6471, allocations: 12.03 kB / 0.5775 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.6471, allocations: 4 kB / 0.5775 GB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005899/0.6477, allocations: 122.5 kB / 0.5776 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000691/0.6485, allocations: 95.89 kB / 0.5777 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005621/0.6541, allocations: 4.711 MB / 0.5823 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004433/0.6546, allocations: 23.98 kB / 0.5824 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-05/0.6547, allocations: 20 kB / 0.5824 GB, free: 11.66 MB / 410.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.0003055/0.655, allocations: 169.8 kB / 0.5825 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.6551, allocations: 39.58 kB / 0.5826 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.6553, allocations: 54.11 kB / 0.5826 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.6553, allocations: 4 kB / 0.5826 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/0.6553, allocations: 4 kB / 0.5826 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.6553, allocations: 0 / 0.5826 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003189/0.6585, allocations: 1.339 MB / 0.5839 GB, free: 9.973 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/0.6586, allocations: 7.953 kB / 0.584 GB, free: 9.965 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008339/0.6594, allocations: 103.8 kB / 0.5841 GB, free: 9.863 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004754/0.6599, allocations: 90.52 kB / 0.5841 GB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.712e-05/0.66, allocations: 12.47 kB / 0.5842 GB, free: 9.754 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004453/0.6644, allocations: 4.143 MB / 0.5882 GB, free: 5.211 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.6645, allocations: 4.031 kB / 0.5882 GB, free: 5.207 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/0.6667, allocations: 1.001 MB / 0.5892 GB, free: 4.145 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.6669, allocations: 112.8 kB / 0.5893 GB, free: 4.016 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.957e-05/0.667, allocations: 12 kB / 0.5893 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004359/0.6674, allocations: 19.98 kB / 0.5893 GB, free: 3.984 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.6676, allocations: 55.72 kB / 0.5894 GB, free: 3.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.073e-05/0.6676, allocations: 16.12 kB / 0.5894 GB, free: 3.914 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002304/0.6679, allocations: 170 kB / 0.5896 GB, free: 3.746 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6679, allocations: 7.938 kB / 0.5896 GB, free: 3.738 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009192/0.6688, allocations: 124 kB / 0.5897 GB, free: 3.617 MB / 410.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.000189/0.669, allocations: 111.2 kB / 0.5898 GB, free: 3.496 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001876/0.6709, allocations: 0.7741 MB / 0.5905 GB, free: 2.691 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.6709, allocations: 0 / 0.5905 GB, free: 2.691 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.6722, allocations: 0.5781 MB / 0.5911 GB, free: 2.074 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006811/0.6729, allocations: 50.11 kB / 0.5912 GB, free: 2.027 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002833/0.6757, allocations: 1.339 MB / 0.5925 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.6763, allocations: 0.8288 MB / 0.5933 GB, free: 15.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.6765, allocations: 39.42 kB / 0.5933 GB, free: 15.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6765, allocations: 0 / 0.5933 GB, free: 15.75 MB / 426.7 MB Notification: Performance of Templates: time 0.01606/0.6925, allocations: 8.783 MB / 0.6019 GB, free: 6.961 MB / 426.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