Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") [: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 trunk/package.mo): time 0.001159/0.001159, allocations: 199.4 kB / 8.535 MB, free: 1.773 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009475/0.0009475, allocations: 91.7 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2381/0.2381, allocations: 45.15 MB / 383.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.552e-06/6.572e-06, allocations: 4 kB / 452.6 MB, free: 76.15 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09173/0.09175, allocations: 63.24 MB / 0.5038 GB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2895/0.3813, allocations: 114.8 MB / 0.6159 GB, free: 4.352 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001892/0.3815, allocations: 70.66 kB / 0.616 GB, free: 4.316 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3613/0.7428, allocations: 138.6 MB / 0.7513 GB, free: 1.66 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0005178/0.7434, allocations: 139.9 kB / 0.7514 GB, free: 1.523 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.1687/0.912, allocations: 6.928 MB / 0.7582 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.9121, allocations: 6.188 kB / 0.7582 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02726/0.9393, allocations: 6.987 MB / 0.765 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01949/0.9589, allocations: 8.325 MB / 0.7731 GB, free: 169.5 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002694/0.9592, allocations: 211.6 kB / 0.7733 GB, free: 169.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002292/0.9615, allocations: 396 kB / 0.7737 GB, free: 169.5 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01574/0.9772, allocations: 10.08 MB / 0.7836 GB, free: 169.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02688/1.004, allocations: 14.63 MB / 0.7978 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003604/1.005, allocations: 102.3 kB / 0.7979 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001829/1.006, allocations: 47.91 kB / 0.798 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002138/1.009, allocations: 1.704 MB / 0.7996 GB, free: 165.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07555/1.084, allocations: 75.89 MB / 0.8738 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006614/1.091, allocations: 5.342 MB / 0.879 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004694/1.095, allocations: 4.341 MB / 0.8832 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01996/1.115, allocations: 14.29 MB / 0.8972 GB, free: 92.78 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/1.116, allocations: 60.56 kB / 0.8972 GB, free: 92.71 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=287): time 6.322e-06/1.116, allocations: 5.781 kB / 0.8972 GB, free: 92.71 MB / 0.5261 GB Notification: Performance of matching and sorting (n=369): time 0.08995/1.206, allocations: 38.4 MB / 0.9347 GB, free: 60.75 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/1.206, allocations: 269.2 kB / 0.935 GB, free: 60.43 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006819/1.212, allocations: 4.706 MB / 0.9396 GB, free: 56.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007762/1.213, allocations: 25.7 kB / 0.9396 GB, free: 56.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00221/1.215, allocations: 4.308 MB / 0.9438 GB, free: 52.42 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001452/1.217, allocations: 1.316 MB / 0.9451 GB, free: 51.23 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005329/1.217, allocations: 4 kB / 0.9451 GB, free: 51.23 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004035/1.218, allocations: 0.7057 MB / 0.9458 GB, free: 50.62 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004352/1.222, allocations: 3.681 MB / 0.9494 GB, free: 47.09 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005856/1.228, allocations: 9.03 MB / 0.9582 GB, free: 35.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007614/1.236, allocations: 6.011 MB / 0.9641 GB, free: 29.37 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.838e-05/1.236, allocations: 57.03 kB / 0.9641 GB, free: 29.32 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.03134/1.267, allocations: 15.13 MB / 0.9789 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/1.267, allocations: 4 kB / 0.9789 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003571/1.268, allocations: 188 kB / 0.9791 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01273/1.28, allocations: 3.784 MB / 0.9828 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007185/1.288, allocations: 2.078 MB / 0.9848 GB, free: 8.109 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1822/1.47, allocations: 19.94 MB / 1.004 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007264/1.477, allocations: 334.6 kB / 1.005 GB, free: 149.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001488/1.479, allocations: 0.5524 MB / 1.005 GB, free: 149.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 864 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1120): * Single equations (assignments): 1115 * Array equations: 3 * 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 {(2,100.0%) 44,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001312/1.48, allocations: 0.5816 MB / 1.006 GB, free: 149.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009315/1.481, allocations: 0.5369 MB / 1.006 GB, free: 149.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01993/1.501, allocations: 9.468 MB / 1.015 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.364e-05/1.501, allocations: 33.22 kB / 1.016 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.853e-05/1.501, allocations: 16.75 kB / 1.016 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-05/1.501, allocations: 20.09 kB / 1.016 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03476/1.536, allocations: 17.94 MB / 1.033 GB, free: 148.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-05/1.536, allocations: 0 / 1.033 GB, free: 148.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002698/1.539, allocations: 482.1 kB / 1.034 GB, free: 148.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01194/1.551, allocations: 3.413 MB / 1.037 GB, free: 148.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006014/1.551, allocations: 14.25 kB / 1.037 GB, free: 148.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02641/1.578, allocations: 18.38 MB / 1.055 GB, free: 143 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/1.578, allocations: 6.797 kB / 1.055 GB, free: 143 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02401/1.602, allocations: 14.25 MB / 1.069 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001276/1.603, allocations: 0.5349 MB / 1.069 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001175/1.604, allocations: 7.344 kB / 1.069 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002728/1.607, allocations: 116.3 kB / 1.069 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004386/1.607, allocations: 171.7 kB / 1.07 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002971/1.608, allocations: 98.41 kB / 1.07 GB, free: 137.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004117/1.612, allocations: 3.175 MB / 1.073 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007275/1.619, allocations: 1.581 MB / 1.074 GB, free: 136.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 260 * Array equations: 3 * 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%) 40,(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007146/1.62, allocations: 181.5 kB / 1.074 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01464/1.634, allocations: 9.21 MB / 1.083 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.634, allocations: 0 / 1.083 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004986/1.639, allocations: 3.591 MB / 1.087 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003483/1.643, allocations: 0.5742 MB / 1.088 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02477/1.668, allocations: 13.37 MB / 1.101 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006126/1.674, allocations: 5.378 MB / 1.106 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of SimCode: time 7.92e-07/1.674, allocations: 0 / 1.106 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.1125/1.786, allocations: 76.64 MB / 1.181 GB, free: 48.17 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches