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.001256/0.001256, allocations: 115.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 204.6 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.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2695, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01617/0.2857, allocations: 14.98 MB / 423.7 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.2964, allocations: 4.823 MB / 428.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002595/0.299, allocations: 91.75 kB / 428.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005838/0.3049, allocations: 3.165 MB / 431.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006057/0.311, allocations: 2.579 MB / 434.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002324/0.3133, allocations: 0.9905 MB / 435.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009398/0.3227, allocations: 7.041 MB / 442.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005989/0.3288, allocations: 4.337 MB / 446.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004115/0.3329, allocations: 2.211 MB / 449 MB, free: 9.133 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004936/0.3379, allocations: 3.236 MB / 452.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001897/0.3398, allocations: 484 kB / 452.7 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003894/0.3437, allocations: 1.482 MB / 454.2 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004044/0.3478, allocations: 2.864 MB / 457 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005529/0.3533, allocations: 3.281 MB / 460.3 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01321/0.3666, allocations: 10.54 MB / 470.8 MB, free: 3.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3666, allocations: 4 kB / 470.8 MB, free: 3.176 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3666, allocations: 0 / 470.8 MB, free: 3.176 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004043/0.367, allocations: 0 / 470.8 MB, free: 3.176 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.01983/0.3869, allocations: 7.624 MB / 478.5 MB, free: 11.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.3869, allocations: 8.031 kB / 478.5 MB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003358/0.3903, allocations: 1.137 MB / 479.6 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04345/0.4338, allocations: 7.555 MB / 487.2 MB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01154/0.4454, allocations: 4.659 MB / 491.8 MB, free: 14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003094/0.4457, allocations: 324.1 kB / 492.1 MB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001852/0.4476, allocations: 443.6 kB / 492.6 MB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0308/0.4784, allocations: 15.6 MB / 0.4963 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002866/0.4787, allocations: 63.44 kB / 0.4963 GB, free: 12.66 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001759/0.4805, allocations: 203.8 kB / 0.4965 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005359/0.4858, allocations: 3.22 MB / 0.4997 GB, free: 9.234 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0289/0.5148, allocations: 13.9 MB / 0.5132 GB, free: 11.31 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3298/0.8446, allocations: 57.19 MB / 0.5691 GB, free: 84.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01313/0.8578, allocations: 6.491 MB / 0.5754 GB, free: 81.36 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004457/0.8623, allocations: 3.567 MB / 0.5789 GB, free: 79.93 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02431/0.8866, allocations: 14.31 MB / 0.5929 GB, free: 70.46 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.322e-05/0.8867, allocations: 72.48 kB / 0.593 GB, free: 70.38 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 7.855e-06/0.8867, allocations: 0 / 0.593 GB, free: 70.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.14/1.027, allocations: 41.95 MB / 0.6339 GB, free: 28.91 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.182e-05/1.027, allocations: 217.3 kB / 0.6341 GB, free: 28.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008991/1.036, allocations: 5.496 MB / 0.6395 GB, free: 23.29 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008158/1.037, allocations: 69.7 kB / 0.6396 GB, free: 23.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002456/1.039, allocations: 4.597 MB / 0.644 GB, free: 18.89 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001593/1.041, allocations: 1.301 MB / 0.6453 GB, free: 17.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002682/1.043, allocations: 1.786 MB / 0.6471 GB, free: 15.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.36e-05/1.043, allocations: 313 kB / 0.6474 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005509/1.049, allocations: 4.617 MB / 0.6519 GB, free: 10.87 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007625/1.057, allocations: 9.596 MB / 0.6612 GB, free: 14.83 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01967/1.076, allocations: 15.26 MB / 0.6761 GB, free: 13.11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001795/1.077, allocations: 56 kB / 0.6762 GB, free: 13.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.0471/1.124, allocations: 18.98 MB / 0.6947 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002574/1.124, allocations: 80.75 kB / 0.6948 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003845/1.124, allocations: 176.2 kB / 0.695 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02421/1.149, allocations: 5.781 MB / 0.7006 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007775/1.156, allocations: 2.043 MB / 0.7026 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03651/1.193, allocations: 25.64 MB / 0.7276 GB, free: 7.996 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007817/1.201, allocations: 0.5423 MB / 0.7282 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001958/1.203, allocations: 0.5 MB / 0.7287 GB, free: 6.953 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.007989/1.211, allocations: 3.102 MB / 0.7317 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001781/1.213, allocations: 0.5281 MB / 0.7322 GB, free: 3.309 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03515/1.248, allocations: 12.59 MB / 0.7445 GB, free: 6.645 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00011/1.248, allocations: 59.98 kB / 0.7446 GB, free: 6.586 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.981e-05/1.248, allocations: 8 kB / 0.7446 GB, free: 6.578 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.396e-05/1.248, allocations: 15.94 kB / 0.7446 GB, free: 6.562 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3055/1.554, allocations: 24.2 MB / 0.7682 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.647e-05/1.554, allocations: 7.781 kB / 0.7682 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003021/1.557, allocations: 0.57 MB / 0.7688 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01864/1.575, allocations: 4.806 MB / 0.7735 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007823/1.576, allocations: 58.67 kB / 0.7735 GB, free: 193 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02327/1.6, allocations: 20.93 MB / 0.794 GB, free: 175.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/1.6, allocations: 7.656 kB / 0.794 GB, free: 175.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0332/1.633, allocations: 17.02 MB / 0.8106 GB, free: 158.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/1.634, allocations: 0.5544 MB / 0.8111 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001812/1.636, allocations: 54.41 kB / 0.8112 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004134/1.64, allocations: 255.6 kB / 0.8114 GB, free: 158 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/1.641, allocations: 194.1 kB / 0.8116 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006609/1.642, allocations: 84 kB / 0.8117 GB, free: 157.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006144/1.648, allocations: 3.416 MB / 0.815 GB, free: 154.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/1.648, allocations: 0 / 0.815 GB, free: 154.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008943/1.657, allocations: 1.683 MB / 0.8167 GB, free: 152.7 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.03416/1.691, allocations: 17.69 MB / 0.8339 GB, free: 135 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01526/1.707, allocations: 10.64 MB / 0.8443 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.918e-06/1.707, allocations: 0 / 0.8443 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00563/1.712, allocations: 4.012 MB / 0.8482 GB, free: 120.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006143/1.719, allocations: 0.6607 MB / 0.8489 GB, free: 119.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1563/1.875, allocations: 86.12 MB / 0.933 GB, free: 25.92 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006071/1.881, allocations: 4.619 MB / 0.9375 GB, free: 21.26 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006247/1.887, allocations: 2.979 MB / 0.9404 GB, free: 18.28 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004322/1.892, allocations: 2.913 MB / 0.9433 GB, free: 15.36 MB / 0.545 GB Notification: Performance of SimCode: time 9.92e-07/1.892, allocations: 0 / 0.9433 GB, free: 15.36 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4375/2.329, allocations: 125.3 MB / 1.066 GB, free: 93.36 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.71/41.03, allocations: 18.16 kB / 1.066 GB, free: 93.35 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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