Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4.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/ScalableTestSuite 2.2.0-master/package.mo", uses=false) Using package ScalableTestSuite with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/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(ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4,tolerance=3e-08,outputFormat="mat",numberOfIntervals=4000,variableFilter="revolute.1..angle|revolute.1..phi|revolute.2..angle|revolute.2..phi|revolute.3..angle|revolute.3..phi|revolute.4..angle|revolute.4..phi|time|time",fileNamePrefix="ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4") translateModel(ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4,tolerance=3e-08,outputFormat="mat",numberOfIntervals=4000,variableFilter="revolute.1..angle|revolute.1..phi|revolute.2..angle|revolute.2..phi|revolute.3..angle|revolute.3..phi|revolute.4..angle|revolute.4..phi|time|time",fileNamePrefix="ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4") [:1:1-1:33: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.001072/0.001073, allocations: 183.2 kB / 8.135 MB, free: 2.199 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.106/1.106, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.001068/0.001068, allocations: 96.59 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 0.6892/0.6892, allocations: 120.4 MB / 452 MB, free: 12.98 MB / 346.8 MB Notification: Performance of FrontEnd - loaded program: time 4.719e-06/4.759e-06, allocations: 0 / 0.5282 GB, free: 52.48 MB / 394.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1204, allocations: 82.85 MB / 0.6091 GB, free: 3.57 MB / 426.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.528/0.6485, allocations: 146.5 MB / 0.7522 GB, free: 56 kB / 0.5109 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/0.6487, allocations: 71.84 kB / 0.7522 GB, free: 24 kB / 0.5109 GB Notification: Performance of FrontEnd: time 0.3535/1.002, allocations: 142.3 MB / 0.8912 GB, free: 7.109 MB / 0.6359 GB Notification: Performance of Transformations before backend: time 0.0004068/1.003, allocations: 140 kB / 0.8913 GB, free: 6.973 MB / 0.6359 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2218 * Number of variables: 2218 Notification: Performance of Generate backend data structure: time 0.02234/1.025, allocations: 8.161 MB / 0.8993 GB, free: 15.3 MB / 0.6515 GB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/1.025, allocations: 8.031 kB / 0.8993 GB, free: 15.3 MB / 0.6515 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05256/1.078, allocations: 14.27 MB / 0.9132 GB, free: 2.594 MB / 0.6515 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02928/1.107, allocations: 12.56 MB / 0.9255 GB, free: 8.484 MB / 0.6671 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000361/1.107, allocations: 208 kB / 0.9257 GB, free: 8.281 MB / 0.6671 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002848/1.11, allocations: 414.9 kB / 0.9261 GB, free: 7.887 MB / 0.6671 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01796/1.128, allocations: 10.86 MB / 0.9367 GB, free: 224 kB / 0.6671 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02659/1.155, allocations: 15.44 MB / 0.9518 GB, free: 3.098 MB / 0.6828 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003513/1.155, allocations: 114.6 kB / 0.9519 GB, free: 2.988 MB / 0.6828 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008956/1.156, allocations: 40 kB / 0.9519 GB, free: 2.949 MB / 0.6828 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001983/1.158, allocations: 1.637 MB / 0.9535 GB, free: 1.547 MB / 0.6828 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2765/1.435, allocations: 72.1 MB / 1.024 GB, free: 216.1 MB / 0.6828 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007766/1.442, allocations: 7.347 MB / 1.031 GB, free: 215.5 MB / 0.6828 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005946/1.448, allocations: 5.811 MB / 1.037 GB, free: 214.8 MB / 0.6828 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02386/1.472, allocations: 14.54 MB / 1.051 GB, free: 208.7 MB / 0.6828 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005938/1.478, allocations: 5.169 MB / 1.056 GB, free: 207.2 MB / 0.6828 GB Notification: Performance of pre-optimization done (n=330): time 7.755e-06/1.478, allocations: 7.438 kB / 1.056 GB, free: 207.2 MB / 0.6828 GB Notification: Performance of matching and sorting (n=422): time 0.09694/1.575, allocations: 48.45 MB / 1.103 GB, free: 177.7 MB / 0.6828 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/1.576, allocations: 432.4 kB / 1.104 GB, free: 177.2 MB / 0.6828 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008405/1.584, allocations: 5.714 MB / 1.109 GB, free: 172.4 MB / 0.6828 GB Notification: Performance of collectPreVariables (initialization): time 0.001157/1.585, allocations: 33.7 kB / 1.109 GB, free: 172.4 MB / 0.6828 GB Notification: Performance of collectInitialEqns (initialization): time 0.003361/1.589, allocations: 4.064 MB / 1.113 GB, free: 169.1 MB / 0.6828 GB Notification: Performance of collectInitialBindings (initialization): time 0.0022/1.591, allocations: 1.504 MB / 1.115 GB, free: 167.7 MB / 0.6828 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006192/1.591, allocations: 0 / 1.115 GB, free: 167.7 MB / 0.6828 GB Notification: Performance of setup shared object (initialization): time 0.0004056/1.592, allocations: 0.6828 MB / 1.115 GB, free: 167.1 MB / 0.6828 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005756/1.598, allocations: 5.168 MB / 1.121 GB, free: 162.8 MB / 0.6828 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007921/1.605, allocations: 9.518 MB / 1.13 GB, free: 152.2 MB / 0.6828 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009017/1.615, allocations: 7.216 MB / 1.137 GB, free: 146.5 MB / 0.6828 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/1.615, allocations: 40 kB / 1.137 GB, free: 146.5 MB / 0.6828 GB Notification: Performance of matching and sorting (n=1117) (initialization): time 0.03462/1.649, allocations: 18.13 MB / 1.155 GB, free: 132 MB / 0.6828 GB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/1.649, allocations: 7.844 kB / 1.155 GB, free: 132 MB / 0.6828 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003247/1.65, allocations: 152 kB / 1.155 GB, free: 131.9 MB / 0.6828 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01275/1.663, allocations: 5.011 MB / 1.16 GB, free: 126.9 MB / 0.6828 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008013/1.671, allocations: 1.93 MB / 1.162 GB, free: 124.9 MB / 0.6828 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03586/1.707, allocations: 25.59 MB / 1.187 GB, free: 99.31 MB / 0.6828 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008404/1.715, allocations: 447.2 kB / 1.187 GB, free: 98.88 MB / 0.6828 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002014/1.717, allocations: 483.9 kB / 1.187 GB, free: 98.41 MB / 0.6828 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 680 * Number of states: 0 () * Number of discrete variables: 62 ($whenCondition1,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count,bodybox[5].color[3],bodybox[5].color[2],bodybox[5].color[1],bodybox[5].body.sphereColor[3],bodybox[5].body.sphereColor[2],bodybox[5].body.sphereColor[1],bodybox[4].color[3],bodybox[4].color[2],bodybox[4].color[1],bodybox[4].body.sphereColor[3],bodybox[4].body.sphereColor[2],bodybox[4].body.sphereColor[1],bodybox[3].color[3],bodybox[3].color[2],bodybox[3].color[1],bodybox[3].body.sphereColor[3],bodybox[3].body.sphereColor[2],bodybox[3].body.sphereColor[1],bodybox[2].color[3],bodybox[2].color[2],bodybox[2].color[1],bodybox[2].body.sphereColor[3],bodybox[2].body.sphereColor[2],bodybox[2].body.sphereColor[1],bodybox[1].color[3],bodybox[1].color[2],bodybox[1].color[1],bodybox[1].body.sphereColor[3],bodybox[1].body.sphereColor[2],bodybox[1].body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute[4].cylinderColor[3],revolute[4].cylinderColor[2],revolute[4].cylinderColor[1],revolute[3].cylinderColor[3],revolute[3].cylinderColor[2],revolute[3].cylinderColor[1],revolute[2].cylinderColor[3],revolute[2].cylinderColor[2],revolute[2].cylinderColor[1],revolute[1].cylinderColor[3],revolute[1].cylinderColor[2],revolute[1].cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (995): * Single equations (assignments): 990 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,70.0%) 88} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001812/1.719, allocations: 0.5163 MB / 1.188 GB, free: 97.89 MB / 0.6828 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00137/1.72, allocations: 0.5747 MB / 1.188 GB, free: 97.31 MB / 0.6828 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02095/1.741, allocations: 13.44 MB / 1.202 GB, free: 83.85 MB / 0.6828 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001053/1.741, allocations: 36 kB / 1.202 GB, free: 83.81 MB / 0.6828 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.784e-05/1.741, allocations: 20 kB / 1.202 GB, free: 83.79 MB / 0.6828 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-05/1.741, allocations: 19.92 kB / 1.202 GB, free: 83.77 MB / 0.6828 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04301/1.784, allocations: 26.36 MB / 1.227 GB, free: 57.16 MB / 0.6828 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.542e-05/1.785, allocations: 8 kB / 1.227 GB, free: 57.15 MB / 0.6828 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00363/1.788, allocations: 0.6434 MB / 1.228 GB, free: 56.51 MB / 0.6828 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0116/1.8, allocations: 4.72 MB / 1.233 GB, free: 51.78 MB / 0.6828 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009871/1.801, allocations: 23.98 kB / 1.233 GB, free: 51.76 MB / 0.6828 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02724/1.828, allocations: 24.06 MB / 1.256 GB, free: 27.57 MB / 0.6828 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.55e-05/1.828, allocations: 19.84 kB / 1.256 GB, free: 27.55 MB / 0.6828 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0275/1.856, allocations: 21.7 MB / 1.277 GB, free: 5.277 MB / 0.6828 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003844/1.86, allocations: 1.528 MB / 1.279 GB, free: 3.723 MB / 0.6828 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001441/1.861, allocations: 23.98 kB / 1.279 GB, free: 3.699 MB / 0.6828 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003398/1.864, allocations: 295.5 kB / 1.279 GB, free: 3.41 MB / 0.6828 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006004/1.865, allocations: 226.1 kB / 1.279 GB, free: 3.188 MB / 0.6828 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003491/1.865, allocations: 112 kB / 1.28 GB, free: 3.078 MB / 0.6828 GB Notification: Performance of sort global known variables: time 0.2472/2.113, allocations: 4.114 MB / 1.284 GB, free: 233.3 MB / 0.6828 GB Notification: Performance of remove unused functions: time 0.0102/2.123, allocations: 1.788 MB / 1.285 GB, free: 233.3 MB / 0.6828 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 10 (revolute[1].phi,revolute[1].w,revolute[2].phi,revolute[2].w,revolute[3].phi,revolute[3].w,revolute[4].phi,revolute[4].w,prismatic1.s,prismatic1.v) * Number of discrete variables: 3 ($whenCondition1,pulse1.T_start,pulse1.count) * Number of discrete states: 1 (pulse1.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (312): * Single equations (assignments): 306 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,70.3%) 87} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001088/2.124, allocations: 191.8 kB / 1.285 GB, free: 233.2 MB / 0.6828 GB Notification: Performance of simCode: created initialization part: time 0.0178/2.142, allocations: 12.2 MB / 1.297 GB, free: 233 MB / 0.6828 GB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/2.142, allocations: 3.281 kB / 1.297 GB, free: 233 MB / 0.6828 GB Notification: Performance of simCode: created simulation system equations: time 0.008677/2.151, allocations: 5.423 MB / 1.303 GB, free: 232.8 MB / 0.6828 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005473/2.156, allocations: 0.8319 MB / 1.303 GB, free: 232.8 MB / 0.6828 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03783/2.194, allocations: 18.61 MB / 1.322 GB, free: 230.1 MB / 0.6828 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01116/2.205, allocations: 6.296 MB / 1.328 GB, free: 229.3 MB / 0.6828 GB Notification: Performance of SimCode: time 2.174e-06/2.205, allocations: 0 / 1.328 GB, free: 229.3 MB / 0.6828 GB Notification: Performance of Templates: time 0.15/2.355, allocations: 97.88 MB / 1.423 GB, free: 181.5 MB / 0.6828 GB make -j1 -f ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4.makefile (rm -f ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4.sim & ./ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4 -abortSlowSimulation -alarm=300 -emit_protected -lv LOG_STATS > ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4.pipe 2>&1) diffSimulationResults("ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ScalableTestSuite/ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4_res.mat","../files/ScalableTestSuite_ScalableTestSuite.Mechanical.Strings.ScaledExperiments.StringModelica_N_4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches