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.001496/0.001496, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.206/2.206, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 97.95 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2932/0.2932, allocations: 43.48 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.421e-05/2.425e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4034/0.4034, allocations: 58.86 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1623/0.5658, allocations: 86.23 MB / 0.5501 GB, free: 13.09 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5662, allocations: 71.95 kB / 0.5502 GB, free: 13.02 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02792/0.5941, allocations: 6.2 MB / 0.5562 GB, free: 6.777 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5942, allocations: 3.938 kB / 0.5562 GB, free: 6.773 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.823e-05/0.5942, allocations: 8 kB / 0.5562 GB, free: 6.766 MB / 395.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.001282/0.5955, allocations: 0.5805 MB / 0.5568 GB, free: 6.141 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.5955, allocations: 8.031 kB / 0.5568 GB, free: 6.133 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.5957, allocations: 43.44 kB / 0.5569 GB, free: 6.09 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004969/0.5962, allocations: 275.4 kB / 0.5571 GB, free: 5.777 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.5962, allocations: 12 kB / 0.5571 GB, free: 5.766 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.076e-05/0.5963, allocations: 27.91 kB / 0.5572 GB, free: 5.738 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006229/0.597, allocations: 189.5 kB / 0.5573 GB, free: 5.555 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007907/0.5978, allocations: 310.3 kB / 0.5576 GB, free: 5.238 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.185e-05/0.5978, allocations: 3.984 kB / 0.5576 GB, free: 5.234 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.043e-05/0.5979, allocations: 3.953 kB / 0.5576 GB, free: 5.23 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.5979, allocations: 12 kB / 0.5577 GB, free: 5.219 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.6002, allocations: 1.004 MB / 0.5586 GB, free: 4.168 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007133/0.601, allocations: 311.6 kB / 0.5589 GB, free: 3.836 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003578/0.6014, allocations: 150.9 kB / 0.5591 GB, free: 3.684 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.344e-05/0.6014, allocations: 4 kB / 0.5591 GB, free: 3.68 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.6015, allocations: 47.23 kB / 0.5591 GB, free: 3.625 MB / 395.1 MB Notification: Performance of pre-optimization done (n=39): time 3.787e-06/0.6015, allocations: 3.938 kB / 0.5591 GB, free: 3.621 MB / 395.1 MB Notification: Performance of matching and sorting (n=57): time 0.005144/0.6066, allocations: 2.114 MB / 0.5612 GB, free: 1.234 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/0.6068, allocations: 110.8 kB / 0.5613 GB, free: 1.102 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.607, allocations: 162 kB / 0.5615 GB, free: 0.9336 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 5.43e-05/0.6071, allocations: 29.7 kB / 0.5615 GB, free: 0.8984 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.6073, allocations: 243.5 kB / 0.5617 GB, free: 0.6602 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.6075, allocations: 193.1 kB / 0.5619 GB, free: 480 kB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-05/0.6075, allocations: 0 / 0.5619 GB, free: 480 kB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.6077, allocations: 330.8 kB / 0.5622 GB, free: 140 kB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003288/0.6081, allocations: 105.1 kB / 0.5623 GB, free: 32 kB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004593/0.6085, allocations: 202.8 kB / 0.5625 GB, free: 15.79 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.609, allocations: 128.4 kB / 0.5626 GB, free: 15.67 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.609, allocations: 4 kB / 0.5626 GB, free: 15.66 MB / 411.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00142/0.6104, allocations: 471.3 kB / 0.5631 GB, free: 15.19 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.6105, allocations: 7.953 kB / 0.5631 GB, free: 15.18 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.6105, allocations: 4 kB / 0.5631 GB, free: 15.18 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005862/0.6111, allocations: 118.5 kB / 0.5632 GB, free: 15.05 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007253/0.6118, allocations: 104 kB / 0.5633 GB, free: 14.95 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005601/0.6175, allocations: 4.479 MB / 0.5677 GB, free: 10.12 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.6179, allocations: 8 kB / 0.5677 GB, free: 10.12 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.843e-05/0.618, allocations: 20 kB / 0.5677 GB, free: 10.1 MB / 411.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 () * 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.0001651/0.6181, allocations: 116.3 kB / 0.5678 GB, free: 9.98 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.6183, allocations: 35.61 kB / 0.5679 GB, free: 9.945 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.6184, allocations: 34.03 kB / 0.5679 GB, free: 9.914 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.6184, allocations: 8 kB / 0.5679 GB, free: 9.906 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.702e-05/0.6185, allocations: 4 kB / 0.5679 GB, free: 9.902 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.6185, allocations: 11.88 kB / 0.5679 GB, free: 9.891 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/0.6214, allocations: 1.202 MB / 0.5691 GB, free: 8.629 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.6215, allocations: 0 / 0.5691 GB, free: 8.629 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008327/0.6223, allocations: 95.89 kB / 0.5692 GB, free: 8.535 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004767/0.6228, allocations: 90.52 kB / 0.5693 GB, free: 8.438 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.372e-05/0.6229, allocations: 4 kB / 0.5693 GB, free: 8.434 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004542/0.6274, allocations: 3.934 MB / 0.5731 GB, free: 4.156 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/0.6275, allocations: 4.031 kB / 0.5731 GB, free: 4.152 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00186/0.6294, allocations: 0.8821 MB / 0.574 GB, free: 3.207 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/0.6295, allocations: 112.7 kB / 0.5741 GB, free: 3.078 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.432e-05/0.6296, allocations: 64 / 0.5741 GB, free: 3.078 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.63, allocations: 12 kB / 0.5741 GB, free: 3.066 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.6302, allocations: 47.83 kB / 0.5741 GB, free: 3.02 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.6302, allocations: 19.98 kB / 0.5742 GB, free: 3 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001674/0.6304, allocations: 128.4 kB / 0.5743 GB, free: 2.875 MB / 411.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6304, allocations: 0 / 0.5743 GB, free: 2.875 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0009372/0.6314, allocations: 103.9 kB / 0.5744 GB, free: 2.773 MB / 411.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 () * 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.0001922/0.6316, allocations: 99.19 kB / 0.5745 GB, free: 2.664 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.6332, allocations: 0.6806 MB / 0.5751 GB, free: 1.953 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6333, allocations: 0 / 0.5751 GB, free: 1.953 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.6344, allocations: 0.5166 MB / 0.5756 GB, free: 1.406 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006955/0.6351, allocations: 41.5 kB / 0.5757 GB, free: 1.367 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.6376, allocations: 0.9132 MB / 0.5766 GB, free: 420 kB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005948/0.6382, allocations: 0.8281 MB / 0.5774 GB, free: 15.55 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.6384, allocations: 31.42 kB / 0.5774 GB, free: 15.52 MB / 427.1 MB Notification: Performance of SimCode: time 1.352e-06/0.6384, allocations: 0 / 0.5774 GB, free: 15.52 MB / 427.1 MB Notification: Performance of Templates: time 0.01876/0.6572, allocations: 8.625 MB / 0.5858 GB, free: 6.891 MB / 427.1 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