Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 176.4 kB / 8.347 MB, free: 0.7266 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.431/1.431, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.0008961/0.0008961, allocations: 94.42 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.924e-05/1.936e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.156, allocations: 50.42 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4588/0.6148, allocations: 95.12 MB / 482.6 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.6152, allocations: 87.95 kB / 482.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5829/1.198, allocations: 122.3 MB / 0.5908 GB, free: 94.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.505e-06/1.198, allocations: 0 / 0.5908 GB, free: 94.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005067/1.199, allocations: 121 kB / 0.5909 GB, free: 94.34 MB / 426.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.03149/1.23, allocations: 6.494 MB / 0.5972 GB, free: 91.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.172e-05/1.23, allocations: 8.906 kB / 0.5973 GB, free: 91.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06544/1.296, allocations: 9.417 MB / 0.6065 GB, free: 90.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03/1.326, allocations: 8.093 MB / 0.6144 GB, free: 87.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003552/1.326, allocations: 188.5 kB / 0.6145 GB, free: 87.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003162/1.329, allocations: 352.8 kB / 0.6149 GB, free: 87.22 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01475/1.344, allocations: 8.868 MB / 0.6235 GB, free: 81.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02165/1.366, allocations: 13.02 MB / 0.6362 GB, free: 67.15 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003904/1.366, allocations: 90.75 kB / 0.6363 GB, free: 67.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001602/1.368, allocations: 36 kB / 0.6364 GB, free: 67.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002567/1.37, allocations: 1.447 MB / 0.6378 GB, free: 65.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09172/1.462, allocations: 62.89 MB / 0.6992 GB, free: 1.297 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01386/1.476, allocations: 7.015 MB / 0.706 GB, free: 10.15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009786/1.486, allocations: 5.047 MB / 0.711 GB, free: 5.094 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001384/1.487, allocations: 0.5759 MB / 0.7115 GB, free: 4.445 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.031e-05/1.488, allocations: 72.8 kB / 0.7116 GB, free: 4.363 MB / 442.7 MB Notification: Performance of pre-optimization done (n=346): time 1.269e-05/1.488, allocations: 0 / 0.7116 GB, free: 4.363 MB / 442.7 MB Notification: Performance of matching and sorting (n=610): time 0.4568/1.944, allocations: 75.13 MB / 0.785 GB, free: 87.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.774e-05/1.945, allocations: 277 kB / 0.7852 GB, free: 87.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007163/1.952, allocations: 3.949 MB / 0.7891 GB, free: 84.07 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002112/1.954, allocations: 29.7 kB / 0.7891 GB, free: 84.04 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0026/1.957, allocations: 4.045 MB / 0.7931 GB, free: 80.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003404/1.96, allocations: 2.047 MB / 0.7951 GB, free: 78.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001334/1.961, allocations: 2.438 kB / 0.7951 GB, free: 78.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004612/1.962, allocations: 0.7305 MB / 0.7958 GB, free: 78.01 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01194/1.974, allocations: 8.43 MB / 0.804 GB, free: 70.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01914/1.993, allocations: 12.63 MB / 0.8163 GB, free: 56.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02018/2.013, allocations: 10.41 MB / 0.8265 GB, free: 47.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002158/2.013, allocations: 44 kB / 0.8266 GB, free: 47.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=1266) (initialization): time 0.09824/2.112, allocations: 38.98 MB / 0.8646 GB, free: 8.672 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.786e-05/2.112, allocations: 68 kB / 0.8647 GB, free: 8.605 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001581/2.112, allocations: 144.1 kB / 0.8648 GB, free: 8.465 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3225/2.434, allocations: 21.34 MB / 0.8857 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005504/2.44, allocations: 1.489 MB / 0.8871 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2221/2.662, allocations: 137 MB / 1.021 GB, free: 22.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01961/2.682, allocations: 0.5558 MB / 1.021 GB, free: 22.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003156/2.685, allocations: 0.5427 MB / 1.022 GB, free: 21.6 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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,2]: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] b2.frame_b.R.T[1,2]: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 (805): * Single equations (assignments): 798 * 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,(17,45.3%) 115,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.003419/2.688, allocations: 494.3 kB / 1.022 GB, free: 21.35 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/2.69, allocations: 0.5478 MB / 1.023 GB, free: 20.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.348/3.038, allocations: 35.46 MB / 1.058 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001468/3.038, allocations: 64.08 kB / 1.058 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001988/3.039, allocations: 64.22 kB / 1.058 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001446/3.039, allocations: 28.92 kB / 1.058 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1184/3.157, allocations: 55.73 MB / 1.112 GB, free: 99.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.214e-05/3.157, allocations: 0 / 1.112 GB, free: 99.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/3.159, allocations: 279.2 kB / 1.112 GB, free: 99.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05613/3.215, allocations: 20.57 MB / 1.133 GB, free: 92.69 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002565/3.217, allocations: 11.38 kB / 1.133 GB, free: 92.69 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4606/3.678, allocations: 124.6 MB / 1.254 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/3.678, allocations: 8.719 kB / 1.254 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09408/3.772, allocations: 47.99 MB / 1.301 GB, free: 85.94 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002014/3.774, allocations: 0.5511 MB / 1.302 GB, free: 85.39 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003479/3.778, allocations: 4 kB / 1.302 GB, free: 85.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009238/3.787, allocations: 418.6 kB / 1.302 GB, free: 85.18 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005115/3.792, allocations: 0.5118 MB / 1.303 GB, free: 84.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001637/3.794, allocations: 142 kB / 1.303 GB, free: 84.73 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004591/3.798, allocations: 2.703 MB / 1.305 GB, free: 82.38 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.9e-07/3.798, allocations: 0 / 1.305 GB, free: 82.38 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01678/3.815, allocations: 3.05 MB / 1.308 GB, free: 79.34 MB / 474.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 (154): * Single equations (assignments): 147 * 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.00212/3.817, allocations: 159.9 kB / 1.309 GB, free: 79.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03786/3.855, allocations: 23.57 MB / 1.332 GB, free: 58.18 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/3.855, allocations: 1.938 kB / 1.332 GB, free: 58.18 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02352/3.879, allocations: 13.24 MB / 1.344 GB, free: 46.39 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005643/3.885, allocations: 0.5332 MB / 1.345 GB, free: 45.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03963/3.924, allocations: 20.74 MB / 1.365 GB, free: 25.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008363/3.933, allocations: 5.299 MB / 1.37 GB, free: 20.49 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005815/3.939, allocations: 2.142 MB / 1.373 GB, free: 18.36 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008707/3.939, allocations: 283.4 kB / 1.373 GB, free: 18.08 MB / 474.7 MB Notification: Performance of SimCode: time 1.172e-06/3.939, allocations: 0 / 1.373 GB, free: 18.08 MB / 474.7 MB Notification: Performance of Templates: time 0.8544/4.794, allocations: 212.1 MB / 1.58 GB, free: 87.99 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches