Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [: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.001528/0.001528, allocations: 185.8 kB / 8.138 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 221.4 MB / 229.9 MB, free: 13.56 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009315/0.0009315, allocations: 94.98 kB / 280.8 MB, free: 10.51 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 8.125e-06/8.135e-06, allocations: 4 kB / 336.5 MB, free: 2.797 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09809/0.09811, allocations: 50.41 MB / 386.9 MB, free: 344 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2789/0.3771, allocations: 103.1 MB / 490.1 MB, free: 10.53 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.3774, allocations: 83.95 kB / 490.2 MB, free: 10.45 MB / 370.8 MB Notification: Performance of FrontEnd: time 0.5189/0.8962, allocations: 136.6 MB / 0.6121 GB, free: 74.5 MB / 418.8 MB Notification: Performance of Transformations before backend: time 0.0006436/0.8969, allocations: 147.9 kB / 0.6122 GB, free: 74.36 MB / 418.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02312/0.9201, allocations: 7.384 MB / 0.6195 GB, free: 66.91 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.9201, allocations: 8.031 kB / 0.6195 GB, free: 66.91 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04203/0.9621, allocations: 11.31 MB / 0.6305 GB, free: 55.57 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0265/0.9887, allocations: 9.967 MB / 0.6402 GB, free: 45.62 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000406/0.9891, allocations: 235.9 kB / 0.6405 GB, free: 45.39 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003691/0.9929, allocations: 431.7 kB / 0.6409 GB, free: 44.96 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02068/1.014, allocations: 10.23 MB / 0.6509 GB, free: 34.73 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0331/1.047, allocations: 14.99 MB / 0.6655 GB, free: 18.44 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005887/1.047, allocations: 99.08 kB / 0.6656 GB, free: 18.34 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002834/1.05, allocations: 36 kB / 0.6656 GB, free: 18.31 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002218/1.052, allocations: 1.573 MB / 0.6672 GB, free: 16.74 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2395/1.292, allocations: 73.71 MB / 0.7392 GB, free: 84.02 MB / 434.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006569/1.299, allocations: 6.078 MB / 0.7451 GB, free: 83.37 MB / 434.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005328/1.304, allocations: 5.039 MB / 0.75 GB, free: 83.34 MB / 434.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02192/1.326, allocations: 14.59 MB / 0.7643 GB, free: 79.8 MB / 434.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/1.326, allocations: 67.03 kB / 0.7643 GB, free: 79.75 MB / 434.8 MB Notification: Performance of pre-optimization done (n=275): time 5.381e-06/1.326, allocations: 3.125 kB / 0.7643 GB, free: 79.75 MB / 434.8 MB Notification: Performance of matching and sorting (n=368): time 0.1133/1.439, allocations: 44.03 MB / 0.8073 GB, free: 65.92 MB / 434.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/1.439, allocations: 368.6 kB / 0.8077 GB, free: 65.48 MB / 434.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009296/1.449, allocations: 4.909 MB / 0.8125 GB, free: 61.18 MB / 434.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001174/1.45, allocations: 31.8 kB / 0.8125 GB, free: 61.15 MB / 434.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002553/1.453, allocations: 4.348 MB / 0.8167 GB, free: 57.26 MB / 434.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002008/1.455, allocations: 1.31 MB / 0.818 GB, free: 56.08 MB / 434.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000688/1.455, allocations: 0 / 0.818 GB, free: 56.08 MB / 434.8 MB Notification: Performance of setup shared object (initialization): time 0.0003991/1.456, allocations: 0.6969 MB / 0.8187 GB, free: 55.48 MB / 434.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006162/1.462, allocations: 5.407 MB / 0.824 GB, free: 50.58 MB / 434.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008332/1.47, allocations: 10.46 MB / 0.8342 GB, free: 38.33 MB / 434.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009328/1.48, allocations: 7.433 MB / 0.8415 GB, free: 32.01 MB / 434.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000126/1.48, allocations: 52 kB / 0.8415 GB, free: 31.96 MB / 434.8 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04204/1.522, allocations: 19.84 MB / 0.8609 GB, free: 15.66 MB / 434.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/1.522, allocations: 4 kB / 0.8609 GB, free: 15.66 MB / 434.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002474/1.522, allocations: 180.1 kB / 0.8611 GB, free: 15.48 MB / 434.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01976/1.542, allocations: 5.956 MB / 0.8669 GB, free: 11.28 MB / 434.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008396/1.55, allocations: 2.012 MB / 0.8688 GB, free: 9.543 MB / 434.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1865/1.737, allocations: 28.91 MB / 0.8971 GB, free: 106 MB / 434.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00887/1.746, allocations: 401.9 kB / 0.8975 GB, free: 106 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001937/1.748, allocations: 0.5283 MB / 0.898 GB, free: 106 MB / 434.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 811 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1047): * Single equations (assignments): 1040 * Array equations: 4 * 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: 2 {(5,84.0%) 68,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.00165/1.749, allocations: 0.5538 MB / 0.8985 GB, free: 105.9 MB / 434.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001404/1.751, allocations: 0.55 MB / 0.8991 GB, free: 105.9 MB / 434.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02937/1.78, allocations: 14.72 MB / 0.9134 GB, free: 105.7 MB / 434.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001242/1.78, allocations: 46.97 kB / 0.9135 GB, free: 105.7 MB / 434.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.652e-05/1.78, allocations: 14.91 kB / 0.9135 GB, free: 105.7 MB / 434.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.069e-05/1.78, allocations: 24.95 kB / 0.9135 GB, free: 105.7 MB / 434.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04973/1.83, allocations: 28.48 MB / 0.9413 GB, free: 94.98 MB / 434.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.964e-05/1.83, allocations: 0 / 0.9413 GB, free: 94.98 MB / 434.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003227/1.833, allocations: 0.4969 MB / 0.9418 GB, free: 94.96 MB / 434.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01892/1.852, allocations: 5.626 MB / 0.9473 GB, free: 93.96 MB / 434.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008963/1.853, allocations: 11.48 kB / 0.9473 GB, free: 93.96 MB / 434.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03526/1.889, allocations: 27.47 MB / 0.9741 GB, free: 79.43 MB / 434.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/1.889, allocations: 2.812 kB / 0.9741 GB, free: 79.43 MB / 434.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03545/1.924, allocations: 22.3 MB / 0.9959 GB, free: 60.47 MB / 434.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001813/1.926, allocations: 0.5561 MB / 0.9965 GB, free: 59.91 MB / 434.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00151/1.927, allocations: 4 kB / 0.9965 GB, free: 59.91 MB / 434.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003544/1.931, allocations: 213.3 kB / 0.9967 GB, free: 59.79 MB / 434.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006907/1.932, allocations: 168 kB / 0.9968 GB, free: 59.69 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003987/1.932, allocations: 86.44 kB / 0.9969 GB, free: 59.61 MB / 434.8 MB Notification: Performance of sort global known variables: time 0.00567/1.938, allocations: 3.378 MB / 1 GB, free: 56.66 MB / 434.8 MB Notification: Performance of remove unused functions: time 0.01232/1.95, allocations: 1.875 MB / 1.002 GB, free: 54.8 MB / 434.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (237): * Single equations (assignments): 230 * Array equations: 4 * 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: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001398/1.952, allocations: 226.9 kB / 1.002 GB, free: 54.65 MB / 434.8 MB Notification: Performance of simCode: created initialization part: time 0.01811/1.97, allocations: 13.22 MB / 1.015 GB, free: 43.02 MB / 434.8 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/1.97, allocations: 0 / 1.015 GB, free: 43.02 MB / 434.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00823/1.978, allocations: 5.9 MB / 1.021 GB, free: 37.68 MB / 434.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003944/1.982, allocations: 0.6931 MB / 1.022 GB, free: 37.12 MB / 434.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1732/2.155, allocations: 16.87 MB / 1.038 GB, free: 103.7 MB / 434.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008941/2.164, allocations: 5.761 MB / 1.044 GB, free: 102.8 MB / 434.8 MB Notification: Performance of SimCode: time 1.062e-06/2.164, allocations: 3.625 kB / 1.044 GB, free: 102.8 MB / 434.8 MB Notification: Performance of Templates: time 0.1535/2.318, allocations: 105.4 MB / 1.147 GB, free: 53.06 MB / 434.8 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches