Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 183 kB / 8.522 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 221.4 MB / 230.3 MB, free: 7.68 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009566/0.0009566, allocations: 95.28 kB / 281.2 MB, free: 5.43 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1846/0.1846, allocations: 44.15 MB / 376.1 MB, free: 3.195 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.773e-06/6.793e-06, allocations: 0 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1198, allocations: 61.91 MB / 0.4941 GB, free: 1.602 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3341/0.454, allocations: 87.26 MB / 0.5793 GB, free: 9.457 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.4543, allocations: 68.22 kB / 0.5794 GB, free: 9.422 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01681/0.4711, allocations: 6.102 MB / 0.5853 GB, free: 3.328 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.805e-05/0.4712, allocations: 8 kB / 0.5853 GB, free: 3.32 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.0007574/0.472, allocations: 0.5883 MB / 0.5859 GB, free: 2.684 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.472, allocations: 11.97 kB / 0.5859 GB, free: 2.672 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.845e-05/0.4721, allocations: 43.44 kB / 0.586 GB, free: 2.629 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.4724, allocations: 279.3 kB / 0.5862 GB, free: 2.312 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.4724, allocations: 12 kB / 0.5862 GB, free: 2.301 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.445e-05/0.4725, allocations: 24 kB / 0.5863 GB, free: 2.277 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003524/0.4728, allocations: 189.5 kB / 0.5864 GB, free: 2.094 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004395/0.4733, allocations: 300.7 kB / 0.5867 GB, free: 1.785 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.4733, allocations: 7.906 kB / 0.5867 GB, free: 1.777 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.702e-05/0.4734, allocations: 0 / 0.5867 GB, free: 1.777 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.4734, allocations: 12.69 kB / 0.5867 GB, free: 1.766 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.4747, allocations: 1.016 MB / 0.5877 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.475, allocations: 228.9 kB / 0.588 GB, free: 472 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001998/0.4752, allocations: 157.4 kB / 0.5881 GB, free: 308 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.4753, allocations: 7.984 kB / 0.5881 GB, free: 300 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.4753, allocations: 38.5 kB / 0.5881 GB, free: 252 kB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 1.603e-06/0.4753, allocations: 0 / 0.5881 GB, free: 252 kB / 394.7 MB Notification: Performance of matching and sorting (n=57): time 0.002841/0.4781, allocations: 2.115 MB / 0.5902 GB, free: 13.87 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.4782, allocations: 106.8 kB / 0.5903 GB, free: 13.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.4783, allocations: 161.9 kB / 0.5905 GB, free: 13.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.4784, allocations: 25.7 kB / 0.5905 GB, free: 13.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.602e-05/0.4785, allocations: 169.2 kB / 0.5907 GB, free: 13.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.4786, allocations: 193.1 kB / 0.5908 GB, free: 13.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.497e-05/0.4786, allocations: 0 / 0.5908 GB, free: 13.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.4787, allocations: 346.7 kB / 0.5912 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.4789, allocations: 105.3 kB / 0.5913 GB, free: 12.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.4791, allocations: 199.5 kB / 0.5915 GB, free: 12.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.4794, allocations: 143.9 kB / 0.5916 GB, free: 12.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4794, allocations: 0 / 0.5916 GB, free: 12.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007647/0.4801, allocations: 473.2 kB / 0.592 GB, free: 11.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.4802, allocations: 4 kB / 0.5921 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.4802, allocations: 4 kB / 0.5921 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000354/0.4805, allocations: 114.5 kB / 0.5922 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.481, allocations: 99.88 kB / 0.5923 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004251/0.4852, allocations: 4.44 MB / 0.5966 GB, free: 6.871 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.4856, allocations: 11.98 kB / 0.5966 GB, free: 6.859 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.718e-05/0.4856, allocations: 24 kB / 0.5966 GB, free: 6.836 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 () * 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.0001538/0.4858, allocations: 112.9 kB / 0.5967 GB, free: 6.719 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.4859, allocations: 35.53 kB / 0.5968 GB, free: 6.684 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.109e-05/0.486, allocations: 41.58 kB / 0.5968 GB, free: 6.641 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.486, allocations: 4 kB / 0.5968 GB, free: 6.637 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/0.486, allocations: 4 kB / 0.5968 GB, free: 6.633 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.486, allocations: 7.922 kB / 0.5968 GB, free: 6.625 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001695/0.4877, allocations: 1.184 MB / 0.598 GB, free: 5.379 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.4878, allocations: 0 / 0.598 GB, free: 5.379 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004595/0.4882, allocations: 103.8 kB / 0.5981 GB, free: 5.277 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002854/0.4885, allocations: 98.52 kB / 0.5982 GB, free: 5.172 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.36e-05/0.4886, allocations: 0 / 0.5982 GB, free: 5.172 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002864/0.4914, allocations: 3.913 MB / 0.602 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4914, allocations: 0 / 0.602 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001081/0.4925, allocations: 0.8928 MB / 0.6029 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.41e-05/0.4926, allocations: 104.7 kB / 0.603 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.4927, allocations: 0 / 0.603 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.4929, allocations: 20.11 kB / 0.603 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.569e-05/0.493, allocations: 31.86 kB / 0.603 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.739e-05/0.493, allocations: 20 kB / 0.603 GB, free: 15.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.098e-05/0.4931, allocations: 132.4 kB / 0.6032 GB, free: 15.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006626/0.4938, allocations: 92 kB / 0.6033 GB, free: 15.55 MB / 426.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 () * 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.0001483/0.494, allocations: 107.1 kB / 0.6034 GB, free: 15.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009799/0.495, allocations: 0.6374 MB / 0.604 GB, free: 14.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.495, allocations: 7.938 kB / 0.604 GB, free: 14.76 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005939/0.4956, allocations: 0.4933 MB / 0.6045 GB, free: 14.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000431/0.496, allocations: 31.81 kB / 0.6045 GB, free: 14.21 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.4976, allocations: 0.8871 MB / 0.6054 GB, free: 13.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004803/0.498, allocations: 0.8528 MB / 0.6062 GB, free: 12.4 MB / 426.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4981, allocations: 0 / 0.6062 GB, free: 12.4 MB / 426.7 MB Notification: Performance of Templates: time 0.008327/0.5064, allocations: 4.372 MB / 0.6105 GB, free: 8.035 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches