Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [: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 3.2.3+maint.om/package.mo): time 0.001187/0.001187, allocations: 176.9 kB / 8.475 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.2 MB / 214.1 MB, free: 5.082 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009245/0.0009245, allocations: 83.33 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.841e-06/5.881e-06, allocations: 0 / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08325/0.08327, allocations: 47.57 MB / 362.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2627/0.346, allocations: 93.52 MB / 456.1 MB, free: 8.016 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/0.3464, allocations: 83.3 kB / 456.1 MB, free: 8.004 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.4746/0.821, allocations: 119.3 MB / 0.5619 GB, free: 70.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004216/0.8214, allocations: 121.9 kB / 0.562 GB, free: 70.5 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02305/0.8445, allocations: 6.444 MB / 0.5683 GB, free: 69.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.8446, allocations: 13.81 kB / 0.5684 GB, free: 69.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03626/0.8808, allocations: 9.008 MB / 0.5771 GB, free: 69.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02302/0.9039, allocations: 8.663 MB / 0.5856 GB, free: 68.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003633/0.9044, allocations: 186.4 kB / 0.5858 GB, free: 68.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003308/0.9077, allocations: 349.5 kB / 0.5861 GB, free: 68.49 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01774/0.9254, allocations: 9.193 MB / 0.5951 GB, free: 68.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02994/0.9554, allocations: 13.34 MB / 0.6081 GB, free: 65.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003571/0.9558, allocations: 82.89 kB / 0.6082 GB, free: 65.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001668/0.9575, allocations: 39.22 kB / 0.6082 GB, free: 65.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001864/0.9594, allocations: 1.544 MB / 0.6097 GB, free: 65.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07683/1.036, allocations: 64.6 MB / 0.6728 GB, free: 19.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007884/1.044, allocations: 7.168 MB / 0.6798 GB, free: 12.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005906/1.05, allocations: 5.507 MB / 0.6852 GB, free: 7.746 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02343/1.074, allocations: 14.19 MB / 0.6991 GB, free: 11.51 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/1.074, allocations: 64.81 kB / 0.6991 GB, free: 11.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 5.891e-06/1.074, allocations: 0 / 0.6991 GB, free: 11.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.3466/1.42, allocations: 73.5 MB / 0.7709 GB, free: 128.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/1.42, allocations: 274.9 kB / 0.7712 GB, free: 128.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007153/1.428, allocations: 4.055 MB / 0.7751 GB, free: 127.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002158/1.43, allocations: 27.02 kB / 0.7751 GB, free: 127.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002599/1.432, allocations: 3.565 MB / 0.7786 GB, free: 125.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003544/1.436, allocations: 2.035 MB / 0.7806 GB, free: 124.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002074/1.438, allocations: 0 / 0.7806 GB, free: 124.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007294/1.439, allocations: 0.7168 MB / 0.7813 GB, free: 124.1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01199/1.451, allocations: 8.578 MB / 0.7897 GB, free: 123.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01536/1.466, allocations: 12.77 MB / 0.8022 GB, free: 114.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0145/1.481, allocations: 10.59 MB / 0.8125 GB, free: 110.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001245/1.481, allocations: 42.44 kB / 0.8126 GB, free: 110.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=1260) (initialization): time 0.09358/1.574, allocations: 38.57 MB / 0.8502 GB, free: 88.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/1.575, allocations: 7.281 kB / 0.8502 GB, free: 88.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002203/1.575, allocations: 144 kB / 0.8504 GB, free: 88.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06804/1.643, allocations: 20.88 MB / 0.8707 GB, free: 68.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005175/1.648, allocations: 1.475 MB / 0.8722 GB, free: 67.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2997/1.948, allocations: 126.3 MB / 0.9955 GB, free: 96.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01141/1.959, allocations: 407 kB / 0.9959 GB, free: 96.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002828/1.962, allocations: 0.5401 MB / 0.9965 GB, free: 96.86 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (799): * Single equations (assignments): 792 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.003867/1.966, allocations: 486.4 kB / 0.9969 GB, free: 96.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001595/1.968, allocations: 0.5476 MB / 0.9975 GB, free: 96.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07658/2.044, allocations: 35.08 MB / 1.032 GB, free: 76.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001281/2.044, allocations: 56 kB / 1.032 GB, free: 76.76 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.174e-05/2.044, allocations: 67.94 kB / 1.032 GB, free: 76.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001023/2.044, allocations: 29.16 kB / 1.032 GB, free: 76.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2413/2.286, allocations: 55.11 MB / 1.086 GB, free: 107.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.857e-05/2.286, allocations: 0 / 1.086 GB, free: 107.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/2.288, allocations: 269.7 kB / 1.086 GB, free: 107.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06104/2.349, allocations: 20.11 MB / 1.106 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001968/2.351, allocations: 18.67 kB / 1.106 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1595/2.51, allocations: 116.9 MB / 1.22 GB, free: 57.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/2.51, allocations: 3.156 kB / 1.22 GB, free: 57.08 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.222/2.732, allocations: 47.8 MB / 1.266 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006874/2.739, allocations: 2.338 MB / 1.269 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002641/2.742, allocations: 7.344 kB / 1.269 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007286/2.749, allocations: 268.8 kB / 1.269 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002219/2.751, allocations: 268.4 kB / 1.269 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00105/2.752, allocations: 144.7 kB / 1.269 GB, free: 101.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.005234/2.758, allocations: 2.794 MB / 1.272 GB, free: 101.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01339/2.771, allocations: 2.836 MB / 1.275 GB, free: 101.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.001766/2.773, allocations: 148.5 kB / 1.275 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03603/2.809, allocations: 22.86 MB / 1.297 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/2.809, allocations: 2.781 kB / 1.297 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02177/2.831, allocations: 12.44 MB / 1.31 GB, free: 96.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004528/2.835, allocations: 0.5173 MB / 1.31 GB, free: 96.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04908/2.885, allocations: 21.44 MB / 1.331 GB, free: 88.79 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008415/2.893, allocations: 5.348 MB / 1.336 GB, free: 87.13 MB / 442.7 MB Notification: Performance of SimCode: time 1.573e-06/2.893, allocations: 0 / 1.336 GB, free: 87.13 MB / 442.7 MB Notification: Performance of Templates: time 0.4026/3.296, allocations: 211.6 MB / 1.543 GB, free: 49.71 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches