Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008788/0.0008788, allocations: 97.77 kB / 296.4 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002064/0.0002062, allocations: 4 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1917, allocations: 51.3 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.05376/0.2455, allocations: 73.53 MB / 481 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02938/0.2749, allocations: 15.79 MB / 496.8 MB, free: 2.285 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009905/0.2849, allocations: 375 kB / 497.2 MB, free: 1.918 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008356/0.2933, allocations: 3.616 MB / 0.4891 GB, free: 14.28 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02272/0.316, allocations: 10.75 MB / 0.4996 GB, free: 3.488 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004057/0.3201, allocations: 1.221 MB / 0.5008 GB, free: 2.266 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.3388/0.6589, allocations: 121.1 MB / 0.619 GB, free: 0.6289 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01467/0.6736, allocations: 10.21 MB / 0.6289 GB, free: 9.461 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004779/0.6784, allocations: 2.4 MB / 0.6313 GB, free: 7.824 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004737/0.6832, allocations: 3.638 MB / 0.6348 GB, free: 5.215 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001113/0.6843, allocations: 248 kB / 0.6351 GB, free: 4.973 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002908/0.6872, allocations: 1.29 MB / 0.6363 GB, free: 3.926 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003083/0.6903, allocations: 3.224 MB / 0.6395 GB, free: 1.543 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001355/0.6917, allocations: 1.44 MB / 0.6409 GB, free: 1.039 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008335/0.7001, allocations: 10.35 MB / 0.651 GB, free: 8.062 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.7001, allocations: 3.562 kB / 0.651 GB, free: 8.062 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.7001, allocations: 4 kB / 0.651 GB, free: 8.059 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003629/0.7005, allocations: 0 / 0.651 GB, free: 8.059 MB / 474.7 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.01563/0.7161, allocations: 7.429 MB / 0.6583 GB, free: 1.223 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.7162, allocations: 8.031 kB / 0.6583 GB, free: 1.215 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04082/0.757, allocations: 4.964 MB / 0.6631 GB, free: 12.39 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.77, allocations: 6.159 MB / 0.6691 GB, free: 8.027 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002579/0.7703, allocations: 428.5 kB / 0.6695 GB, free: 7.793 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001294/0.7716, allocations: 0.587 MB / 0.6701 GB, free: 7.406 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3606/1.132, allocations: 17.05 MB / 0.6868 GB, free: 191.4 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003323/1.133, allocations: 82.89 kB / 0.6868 GB, free: 191.4 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009575/1.134, allocations: 267.6 kB / 0.6871 GB, free: 191.3 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004695/1.138, allocations: 2.662 MB / 0.6897 GB, free: 190.8 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02709/1.165, allocations: 14.78 MB / 0.7041 GB, free: 182.9 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07289/1.238, allocations: 64.49 MB / 0.7671 GB, free: 117.6 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01917/1.258, allocations: 8.824 MB / 0.7757 GB, free: 108.7 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004407/1.262, allocations: 5.051 MB / 0.7807 GB, free: 103.6 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02046/1.282, allocations: 18.62 MB / 0.7988 GB, free: 84.92 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/1.283, allocations: 60.56 kB / 0.7989 GB, free: 84.85 MB / 490.8 MB Notification: Performance of pre-optimization done (n=281): time 5.149e-06/1.283, allocations: 0 / 0.7989 GB, free: 84.85 MB / 490.8 MB Notification: Performance of matching and sorting (n=374): time 0.2177/1.5, allocations: 75.08 MB / 0.8722 GB, free: 9.758 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/1.5, allocations: 376.6 kB / 0.8726 GB, free: 9.309 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008111/1.509, allocations: 6.336 MB / 0.8788 GB, free: 2.965 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001173/1.51, allocations: 89.61 kB / 0.8789 GB, free: 2.875 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.2052/1.715, allocations: 4.74 MB / 0.8835 GB, free: 180.1 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00188/1.717, allocations: 1.384 MB / 0.8848 GB, free: 179.3 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007232/1.718, allocations: 189 kB / 0.885 GB, free: 179.3 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0004608/1.718, allocations: 0.7054 MB / 0.8857 GB, free: 178.9 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007678/1.726, allocations: 5.957 MB / 0.8915 GB, free: 177.7 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009376/1.735, allocations: 10.99 MB / 0.9022 GB, free: 168.8 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009041/1.744, allocations: 7.892 MB / 0.91 GB, free: 165.6 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.541e-05/1.744, allocations: 53.16 kB / 0.91 GB, free: 165.6 MB / 490.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.03849/1.783, allocations: 23.27 MB / 0.9327 GB, free: 150.4 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/1.783, allocations: 80 kB / 0.9328 GB, free: 150.3 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001803/1.783, allocations: 172 kB / 0.933 GB, free: 150.1 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01907/1.802, allocations: 7.529 MB / 0.9403 GB, free: 142.6 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006787/1.809, allocations: 2.187 MB / 0.9425 GB, free: 140.4 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03843/1.848, allocations: 35.56 MB / 0.9772 GB, free: 104.4 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008137/1.856, allocations: 0.7451 MB / 0.9779 GB, free: 103.7 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001575/1.857, allocations: 0.528 MB / 0.9784 GB, free: 103.2 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * 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 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.005171/1.863, allocations: 3.433 MB / 0.9818 GB, free: 99.72 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/1.864, allocations: 0.5669 MB / 0.9823 GB, free: 99.15 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02724/1.891, allocations: 16.95 MB / 0.9989 GB, free: 82.13 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.687e-05/1.891, allocations: 48.94 kB / 0.9989 GB, free: 82.08 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.002e-05/1.891, allocations: 16 kB / 0.999 GB, free: 82.07 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.464e-05/1.891, allocations: 23.92 kB / 0.999 GB, free: 82.04 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04559/1.937, allocations: 32.15 MB / 1.03 GB, free: 49.48 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.66e-05/1.937, allocations: 4 kB / 1.03 GB, free: 49.47 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002782/1.94, allocations: 0.6045 MB / 1.031 GB, free: 48.87 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01795/1.958, allocations: 7.153 MB / 1.038 GB, free: 41.7 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007065/1.958, allocations: 60 kB / 1.038 GB, free: 41.64 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2152/2.174, allocations: 33.87 MB / 1.071 GB, free: 161.1 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/2.174, allocations: 0 / 1.071 GB, free: 161.1 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03522/2.209, allocations: 24.57 MB / 1.095 GB, free: 152.5 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00156/2.21, allocations: 0.6335 MB / 1.096 GB, free: 152.3 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001195/2.212, allocations: 59.97 kB / 1.096 GB, free: 152.3 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003675/2.215, allocations: 451.1 kB / 1.096 GB, free: 152.2 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000883/2.216, allocations: 253 kB / 1.096 GB, free: 152.2 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003292/2.216, allocations: 93.3 kB / 1.097 GB, free: 152.2 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.005062/2.222, allocations: 4.013 MB / 1.1 GB, free: 150.8 MB / 490.8 MB Notification: Performance of sort global known variables: time 8.02e-07/2.222, allocations: 0 / 1.1 GB, free: 150.8 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007882/2.229, allocations: 2.303 MB / 1.103 GB, free: 148.8 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * 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.001096/2.231, allocations: 272 kB / 1.103 GB, free: 148.6 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0185/2.249, allocations: 14.82 MB / 1.117 GB, free: 135.2 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/2.249, allocations: 5.312 kB / 1.117 GB, free: 135.2 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008378/2.258, allocations: 6.685 MB / 1.124 GB, free: 128.5 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00584/2.263, allocations: 0.8367 MB / 1.125 GB, free: 127.7 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03429/2.298, allocations: 23.39 MB / 1.148 GB, free: 104.5 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00588/2.304, allocations: 5.215 MB / 1.153 GB, free: 99.22 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002313/2.306, allocations: 447.4 kB / 1.153 GB, free: 98.78 MB / 490.8 MB Notification: Performance of SimCode: time 1.082e-06/2.306, allocations: 0 / 1.153 GB, free: 98.78 MB / 490.8 MB Notification: Performance of Templates: time 0.3711/2.677, allocations: 207.9 MB / 1.356 GB, free: 56.07 MB / 490.8 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches