Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") [: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.0014/0.0014, allocations: 179.7 kB / 8.519 MB, free: 1.859 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.265/1.265, allocations: 221.4 MB / 230.3 MB, free: 7.727 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.0009023/0.0009024, allocations: 76.8 kB / 281.2 MB, free: 5.48 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.1859/0.1859, allocations: 44.15 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.716e-06/8.756e-06, allocations: 4.219 kB / 444 MB, free: 15.64 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1213, allocations: 61.91 MB / 0.4941 GB, free: 1.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3392/0.4606, allocations: 85.02 MB / 0.5771 GB, free: 11.73 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.4609, allocations: 66.27 kB / 0.5772 GB, free: 11.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.005284/0.4662, allocations: 1.748 MB / 0.5789 GB, free: 10.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.4663, allocations: 4 kB / 0.5789 GB, free: 10.03 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003924/0.4667, allocations: 366.4 kB / 0.5792 GB, free: 9.621 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.4667, allocations: 15.97 kB / 0.5793 GB, free: 9.605 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.4668, allocations: 7.906 kB / 0.5793 GB, free: 9.598 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.4669, allocations: 179.5 kB / 0.5794 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.4669, allocations: 4 kB / 0.5794 GB, free: 9.379 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.467, allocations: 15.91 kB / 0.5795 GB, free: 9.363 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001243/0.4671, allocations: 44.45 kB / 0.5795 GB, free: 9.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001643/0.4673, allocations: 112.7 kB / 0.5796 GB, free: 9.199 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.4673, allocations: 4 kB / 0.5796 GB, free: 9.195 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.4673, allocations: 0 / 0.5796 GB, free: 9.195 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.4673, allocations: 5.5 kB / 0.5796 GB, free: 9.191 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006791/0.468, allocations: 0.5104 MB / 0.5801 GB, free: 8.633 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.812e-05/0.4681, allocations: 75.45 kB / 0.5802 GB, free: 8.547 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.778e-05/0.4682, allocations: 21.72 kB / 0.5802 GB, free: 8.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.4682, allocations: 7.984 kB / 0.5802 GB, free: 8.512 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.364e-05/0.4682, allocations: 34.56 kB / 0.5802 GB, free: 8.469 MB / 394.7 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.4682, allocations: 0 / 0.5802 GB, free: 8.469 MB / 394.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002866/0.4685, allocations: 95.33 kB / 0.5803 GB, free: 8.363 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.4686, allocations: 81.11 kB / 0.5804 GB, free: 8.266 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.591e-05/0.4686, allocations: 112.8 kB / 0.5805 GB, free: 8.148 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.4687, allocations: 29.7 kB / 0.5805 GB, free: 8.113 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.846e-05/0.4687, allocations: 115.6 kB / 0.5807 GB, free: 7.996 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.4687, allocations: 34.5 kB / 0.5807 GB, free: 7.965 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-06/0.4688, allocations: 0 / 0.5807 GB, free: 7.965 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.768e-05/0.4688, allocations: 323.5 kB / 0.581 GB, free: 7.641 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.171e-05/0.4689, allocations: 20 kB / 0.581 GB, free: 7.621 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.067e-05/0.469, allocations: 84.52 kB / 0.5811 GB, free: 7.508 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.059e-05/0.469, allocations: 33.12 kB / 0.5811 GB, free: 7.477 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.469, allocations: 0 / 0.5811 GB, free: 7.477 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002331/0.4693, allocations: 147.1 kB / 0.5813 GB, free: 7.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.4693, allocations: 5.031 kB / 0.5813 GB, free: 7.316 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.4693, allocations: 11.94 kB / 0.5813 GB, free: 7.305 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/0.4695, allocations: 29.72 kB / 0.5813 GB, free: 7.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.03e-05/0.4696, allocations: 27.92 kB / 0.5813 GB, free: 7.242 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00166/0.4712, allocations: 2.423 MB / 0.5837 GB, free: 4.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.534e-05/0.4713, allocations: 11.84 kB / 0.5837 GB, free: 4.578 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.4713, allocations: 7.938 kB / 0.5837 GB, free: 4.57 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.412e-05/0.4714, allocations: 106.2 kB / 0.5838 GB, free: 4.461 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.047e-05/0.4715, allocations: 11.98 kB / 0.5838 GB, free: 4.449 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.917e-05/0.4715, allocations: 16 kB / 0.5839 GB, free: 4.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.4715, allocations: 3.906 kB / 0.5839 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4715, allocations: 0 / 0.5839 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.4715, allocations: 0 / 0.5839 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002279/0.4718, allocations: 174.1 kB / 0.584 GB, free: 4.219 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.4718, allocations: 0 / 0.584 GB, free: 4.219 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.43e-05/0.4719, allocations: 15.98 kB / 0.584 GB, free: 4.203 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.467e-05/0.472, allocations: 33.66 kB / 0.5841 GB, free: 4.164 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.472, allocations: 15.89 kB / 0.5841 GB, free: 4.148 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001639/0.4736, allocations: 2.402 MB / 0.5864 GB, free: 1.516 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/0.4737, allocations: 12.03 kB / 0.5864 GB, free: 1.508 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002689/0.4739, allocations: 302 kB / 0.5867 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.834e-05/0.474, allocations: 85.02 kB / 0.5868 GB, free: 1.082 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.487e-05/0.474, allocations: 3.906 kB / 0.5868 GB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.332e-05/0.4741, allocations: 0 / 0.5868 GB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.575e-05/0.4741, allocations: 11.98 kB / 0.5868 GB, free: 1.066 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-06/0.4741, allocations: 0 / 0.5868 GB, free: 1.066 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.627e-05/0.4742, allocations: 91.28 kB / 0.5869 GB, free: 0.9766 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003346/0.4745, allocations: 35.84 kB / 0.5869 GB, free: 0.9414 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.phi,J2.w,J3.phi,J4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001374/0.4747, allocations: 103.2 kB / 0.587 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003507/0.475, allocations: 267.7 kB / 0.5873 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.475, allocations: 0 / 0.5873 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002174/0.4753, allocations: 231.5 kB / 0.5875 GB, free: 308 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.4756, allocations: 22.3 kB / 0.5875 GB, free: 288 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005806/0.4762, allocations: 376.2 kB / 0.5879 GB, free: 15.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000267/0.4764, allocations: 0.7153 MB / 0.5886 GB, free: 15.15 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4764, allocations: 0 / 0.5886 GB, free: 15.15 MB / 410.7 MB Notification: Performance of Templates: time 0.00367/0.4801, allocations: 1.433 MB / 0.59 GB, free: 13.73 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches