Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002756/0.002762, allocations: 186.9 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.462/3.462, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001914/0.001914, allocations: 98.84 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006406/0.0006408, allocations: 12 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1719, allocations: 47.58 MB / 374.5 MB, free: 15.42 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.5263/0.6983, allocations: 45.72 MB / 420.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.05419/0.7525, allocations: 11.09 MB / 431.4 MB, free: 3.105 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01778/0.7704, allocations: 230.3 kB / 431.6 MB, free: 3.066 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0139/0.7844, allocations: 2.284 MB / 433.9 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04421/0.8287, allocations: 6.685 MB / 440.6 MB, free: 10.24 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007359/0.8361, allocations: 0.8471 MB / 441.4 MB, free: 9.391 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1179/0.954, allocations: 28.08 MB / 469.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01772/0.9718, allocations: 4.997 MB / 474.5 MB, free: 8.242 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006781/0.9787, allocations: 1.573 MB / 476.1 MB, free: 6.664 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008157/0.9869, allocations: 2.259 MB / 478.3 MB, free: 4.398 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002601/0.9896, allocations: 236 kB / 478.5 MB, free: 4.168 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007253/0.9969, allocations: 1.092 MB / 479.6 MB, free: 3.074 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008379/1.005, allocations: 2.4 MB / 482 MB, free: 0.668 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004602/1.01, allocations: 1.201 MB / 483.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0214/1.032, allocations: 8.099 MB / 491.3 MB, free: 7.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/1.032, allocations: 4 kB / 491.3 MB, free: 7.336 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.379e-06/1.032, allocations: 0 / 491.3 MB, free: 7.336 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004351/1.032, allocations: 0 / 491.3 MB, free: 7.336 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.03537/1.067, allocations: 6.453 MB / 497.8 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.763e-05/1.068, allocations: 8.031 kB / 497.8 MB, free: 0.793 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1467/1.214, allocations: 9.766 MB / 0.4957 GB, free: 7.004 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02648/1.241, allocations: 4.635 MB / 0.5002 GB, free: 2.305 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007914/1.242, allocations: 316 kB / 0.5005 GB, free: 1.992 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004457/1.246, allocations: 435.6 kB / 0.5009 GB, free: 1.566 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07429/1.321, allocations: 15.74 MB / 0.5163 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004745/1.321, allocations: 63.42 kB / 0.5163 GB, free: 0.832 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003554/1.325, allocations: 203.8 kB / 0.5165 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0145/1.339, allocations: 3.227 MB / 0.5197 GB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5253/1.865, allocations: 14.03 MB / 0.5334 GB, free: 123.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1986/2.063, allocations: 57.56 MB / 0.5896 GB, free: 84.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03619/2.1, allocations: 6.572 MB / 0.596 GB, free: 80.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05833/2.158, allocations: 14.44 MB / 0.6101 GB, free: 65.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.169e-05/2.158, allocations: 64.5 kB / 0.6102 GB, free: 65.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 1.172e-05/2.158, allocations: 0 / 0.6102 GB, free: 65.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.457/2.615, allocations: 42.83 MB / 0.652 GB, free: 22.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/2.615, allocations: 217.9 kB / 0.6522 GB, free: 22.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02058/2.636, allocations: 5.738 MB / 0.6578 GB, free: 16.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001467/2.638, allocations: 69.7 kB / 0.6579 GB, free: 16.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006714/2.644, allocations: 4.284 MB / 0.6621 GB, free: 11.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003312/2.648, allocations: 1.236 MB / 0.6633 GB, free: 10.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002174/2.65, allocations: 173.4 kB / 0.6634 GB, free: 10.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001392/2.651, allocations: 0.6874 MB / 0.6641 GB, free: 9.883 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02008/2.672, allocations: 4.589 MB / 0.6686 GB, free: 5.285 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02952/2.701, allocations: 9.529 MB / 0.6779 GB, free: 9.305 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02894/2.73, allocations: 6.462 MB / 0.6842 GB, free: 2.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002877/2.731, allocations: 52 kB / 0.6843 GB, free: 2.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.6953/3.426, allocations: 18.73 MB / 0.7025 GB, free: 139.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000343/3.426, allocations: 79.53 kB / 0.7026 GB, free: 139.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000634/3.427, allocations: 174.1 kB / 0.7028 GB, free: 139.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07242/3.499, allocations: 5.832 MB / 0.7085 GB, free: 139.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02909/3.529, allocations: 2.053 MB / 0.7105 GB, free: 139.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09677/3.625, allocations: 24.96 MB / 0.7349 GB, free: 129.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01987/3.645, allocations: 0.5423 MB / 0.7354 GB, free: 129.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003485/3.649, allocations: 0.5055 MB / 0.7359 GB, free: 129 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01951/3.669, allocations: 3.097 MB / 0.7389 GB, free: 127.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002769/3.671, allocations: 0.5031 MB / 0.7394 GB, free: 127.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08918/3.761, allocations: 12.6 MB / 0.7517 GB, free: 119.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001897/3.761, allocations: 55.98 kB / 0.7518 GB, free: 119 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.714e-05/3.761, allocations: 13.73 kB / 0.7518 GB, free: 119 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001069/3.761, allocations: 17.91 kB / 0.7518 GB, free: 119 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1436/3.905, allocations: 24.33 MB / 0.7755 GB, free: 94.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.627e-05/3.905, allocations: 8 kB / 0.7756 GB, free: 94.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01/3.915, allocations: 0.5705 MB / 0.7761 GB, free: 93.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05765/3.973, allocations: 4.843 MB / 0.7808 GB, free: 89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001614/3.974, allocations: 48.94 kB / 0.7809 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08017/4.055, allocations: 20.21 MB / 0.8006 GB, free: 68.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.36e-05/4.055, allocations: 8 kB / 0.8006 GB, free: 68.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1154/4.17, allocations: 17.71 MB / 0.8179 GB, free: 50.97 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01427/4.185, allocations: 1.245 MB / 0.8191 GB, free: 49.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009419/4.194, allocations: 52 kB / 0.8192 GB, free: 49.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009838/4.204, allocations: 259.6 kB / 0.8194 GB, free: 49.46 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002715/4.207, allocations: 190.5 kB / 0.8196 GB, free: 49.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001355/4.208, allocations: 85.84 kB / 0.8197 GB, free: 49.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01434/4.223, allocations: 3.612 MB / 0.8232 GB, free: 45.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.933e-06/4.223, allocations: 0 / 0.8232 GB, free: 45.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01954/4.242, allocations: 1.73 MB / 0.8249 GB, free: 43.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002397/4.245, allocations: 225.2 kB / 0.8251 GB, free: 43.69 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03877/4.283, allocations: 10.54 MB / 0.8354 GB, free: 33.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-05/4.284, allocations: 8 kB / 0.8354 GB, free: 33.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01545/4.299, allocations: 4.002 MB / 0.8393 GB, free: 29.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008125/4.307, allocations: 0.586 MB / 0.8399 GB, free: 28.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07676/4.384, allocations: 19.06 MB / 0.8585 GB, free: 9.789 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4984/4.883, allocations: 4.755 MB / 0.8632 GB, free: 136.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005792/4.888, allocations: 421.5 kB / 0.8636 GB, free: 136.5 MB / 442.7 MB Notification: Performance of SimCode: time 3.006e-06/4.889, allocations: 0.7188 kB / 0.8636 GB, free: 136.5 MB / 442.7 MB Notification: Performance of Templates: time 0.4524/5.341, allocations: 143.4 MB / 1.004 GB, free: 18.93 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches