Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001596/0.001596, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001813/0.001813, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 63.88 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.261, allocations: 50.56 MB / 408.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01718/0.2782, allocations: 14.97 MB / 423.8 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01035/0.2886, allocations: 4.823 MB / 428.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002363/0.291, allocations: 91.75 kB / 428.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006482/0.2975, allocations: 3.157 MB / 431.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007184/0.3048, allocations: 2.51 MB / 434.4 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00264/0.3074, allocations: 0.9905 MB / 435.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01069/0.3181, allocations: 7.041 MB / 442.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006227/0.3244, allocations: 4.325 MB / 446.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003697/0.3281, allocations: 2.215 MB / 449 MB, free: 9.129 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004828/0.333, allocations: 3.225 MB / 452.2 MB, free: 5.895 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00131/0.3343, allocations: 487.9 kB / 452.7 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003121/0.3374, allocations: 1.482 MB / 454.1 MB, free: 3.934 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003179/0.3406, allocations: 2.836 MB / 457 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004522/0.3452, allocations: 3.278 MB / 460.2 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.3583, allocations: 10.53 MB / 470.8 MB, free: 3.215 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.3583, allocations: 11.92 kB / 470.8 MB, free: 3.203 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3584, allocations: 0 / 470.8 MB, free: 3.203 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003295/0.3587, allocations: 0 / 470.8 MB, free: 3.203 MB / 382.1 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.01824/0.3769, allocations: 7.62 MB / 478.4 MB, free: 11.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.377, allocations: 16.03 kB / 478.4 MB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002314/0.3793, allocations: 1.137 MB / 479.6 MB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04433/0.4237, allocations: 7.547 MB / 487.1 MB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01049/0.4342, allocations: 4.651 MB / 491.8 MB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002818/0.4345, allocations: 328.2 kB / 492.1 MB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001317/0.4358, allocations: 435.7 kB / 492.5 MB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02894/0.4648, allocations: 15.61 MB / 0.4962 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001806/0.465, allocations: 63.5 kB / 0.4963 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008108/0.4658, allocations: 203.8 kB / 0.4965 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005473/0.4713, allocations: 3.22 MB / 0.4996 GB, free: 9.273 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03045/0.5018, allocations: 13.9 MB / 0.5132 GB, free: 11.34 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2989/0.8007, allocations: 57.19 MB / 0.569 GB, free: 84.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01228/0.813, allocations: 6.49 MB / 0.5754 GB, free: 81.36 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004223/0.8173, allocations: 3.564 MB / 0.5789 GB, free: 79.93 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01797/0.8353, allocations: 14.31 MB / 0.5928 GB, free: 70.38 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.258e-05/0.8354, allocations: 69 kB / 0.5929 GB, free: 70.31 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 6.542e-06/0.8354, allocations: 0 / 0.5929 GB, free: 70.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.1318/0.9673, allocations: 41.95 MB / 0.6339 GB, free: 28.82 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.476e-05/0.9674, allocations: 210 kB / 0.6341 GB, free: 28.57 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00621/0.9736, allocations: 5.499 MB / 0.6394 GB, free: 23.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006739/0.9743, allocations: 69.7 kB / 0.6395 GB, free: 23.13 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001849/0.9761, allocations: 4.592 MB / 0.644 GB, free: 18.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001165/0.9773, allocations: 1.304 MB / 0.6453 GB, free: 17.52 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002096/0.9794, allocations: 1.79 MB / 0.647 GB, free: 15.71 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.527e-05/0.9795, allocations: 305.1 kB / 0.6473 GB, free: 15.41 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005201/0.9847, allocations: 4.616 MB / 0.6518 GB, free: 10.79 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007127/0.9918, allocations: 9.594 MB / 0.6612 GB, free: 14.75 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02019/1.012, allocations: 15.26 MB / 0.6761 GB, free: 13.02 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001272/1.012, allocations: 48 kB / 0.6761 GB, free: 12.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04702/1.059, allocations: 18.99 MB / 0.6947 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/1.059, allocations: 80 kB / 0.6947 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002272/1.06, allocations: 176 kB / 0.6949 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02349/1.083, allocations: 5.774 MB / 0.7006 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007314/1.091, allocations: 2.055 MB / 0.7026 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03658/1.127, allocations: 25.63 MB / 0.7276 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007106/1.134, allocations: 0.5385 MB / 0.7281 GB, free: 7.371 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001497/1.136, allocations: 0.5116 MB / 0.7286 GB, free: 6.859 MB / 0.5294 GB 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005672/1.141, allocations: 3.094 MB / 0.7316 GB, free: 3.754 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00118/1.143, allocations: 0.5237 MB / 0.7321 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03298/1.176, allocations: 12.6 MB / 0.7445 GB, free: 6.555 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000109/1.176, allocations: 59.98 kB / 0.7445 GB, free: 6.496 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.057e-05/1.176, allocations: 8 kB / 0.7445 GB, free: 6.488 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.495e-05/1.176, allocations: 15.94 kB / 0.7445 GB, free: 6.473 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2559/1.432, allocations: 24.19 MB / 0.7682 GB, free: 193.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.405e-05/1.432, allocations: 3.812 kB / 0.7682 GB, free: 193.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003076/1.435, allocations: 0.5742 MB / 0.7687 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01879/1.454, allocations: 4.816 MB / 0.7734 GB, free: 192.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007667/1.455, allocations: 54.09 kB / 0.7735 GB, free: 192.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02268/1.477, allocations: 20.92 MB / 0.7939 GB, free: 175.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.477, allocations: 8 kB / 0.7939 GB, free: 175.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0317/1.509, allocations: 17.02 MB / 0.8105 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/1.511, allocations: 0.5511 MB / 0.8111 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001423/1.512, allocations: 52.88 kB / 0.8111 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003307/1.515, allocations: 255.6 kB / 0.8114 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000834/1.516, allocations: 198.2 kB / 0.8116 GB, free: 157.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002735/1.516, allocations: 83.98 kB / 0.8116 GB, free: 157.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004731/1.521, allocations: 3.423 MB / 0.815 GB, free: 154.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.82e-07/1.521, allocations: 0 / 0.815 GB, free: 154.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007829/1.529, allocations: 1.678 MB / 0.8166 GB, free: 152.5 MB / 0.545 GB 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03157/1.561, allocations: 17.69 MB / 0.8339 GB, free: 134.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01477/1.576, allocations: 10.63 MB / 0.8443 GB, free: 124.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/1.576, allocations: 0 / 0.8443 GB, free: 124.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00537/1.581, allocations: 4.022 MB / 0.8482 GB, free: 120.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004837/1.586, allocations: 0.653 MB / 0.8488 GB, free: 119.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1346/1.72, allocations: 86.11 MB / 0.9329 GB, free: 25.77 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004686/1.725, allocations: 4.623 MB / 0.9374 GB, free: 21.11 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005882/1.731, allocations: 2.975 MB / 0.9404 GB, free: 18.13 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003906/1.735, allocations: 2.92 MB / 0.9432 GB, free: 15.21 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/1.735, allocations: 0 / 0.9432 GB, free: 15.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3731/2.108, allocations: 125.3 MB / 1.066 GB, free: 93.38 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.3/41.4, allocations: 9.719 kB / 1.066 GB, free: 93.37 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches