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.001493/0.001493, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002001/0.002001, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3073, allocations: 50.56 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01602/0.3234, allocations: 14.97 MB / 423.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01061/0.334, allocations: 4.823 MB / 428.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002854/0.3369, allocations: 91.75 kB / 428.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006637/0.3436, allocations: 3.161 MB / 431.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007998/0.3517, allocations: 2.584 MB / 434.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003024/0.3547, allocations: 0.9866 MB / 435.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01176/0.3665, allocations: 7.041 MB / 442.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007697/0.3743, allocations: 4.333 MB / 446.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005248/0.3796, allocations: 2.211 MB / 449 MB, free: 9.152 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005919/0.3855, allocations: 3.232 MB / 452.2 MB, free: 5.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002237/0.3878, allocations: 491.9 kB / 452.7 MB, free: 5.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00464/0.3925, allocations: 1.482 MB / 454.2 MB, free: 3.945 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004715/0.3972, allocations: 2.86 MB / 457 MB, free: 1.078 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007134/0.4044, allocations: 3.285 MB / 460.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01636/0.4208, allocations: 10.54 MB / 470.8 MB, free: 3.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.073e-05/0.4209, allocations: 0 / 470.8 MB, free: 3.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4209, allocations: 0 / 470.8 MB, free: 3.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004551/0.4213, allocations: 0 / 470.8 MB, free: 3.188 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.02441/0.4458, allocations: 7.623 MB / 478.5 MB, free: 11.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.4458, allocations: 8.031 kB / 478.5 MB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003916/0.4498, allocations: 1.141 MB / 479.6 MB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04193/0.4917, allocations: 7.543 MB / 487.2 MB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01206/0.5038, allocations: 4.663 MB / 491.8 MB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003985/0.5043, allocations: 321.2 kB / 492.1 MB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002155/0.5064, allocations: 435.7 kB / 492.6 MB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03161/0.5381, allocations: 15.61 MB / 0.4963 GB, free: 12.74 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003316/0.5385, allocations: 63.5 kB / 0.4963 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001873/0.5404, allocations: 211.7 kB / 0.4965 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005475/0.5459, allocations: 3.216 MB / 0.4997 GB, free: 9.254 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02942/0.5753, allocations: 13.91 MB / 0.5132 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3076/0.8829, allocations: 57.17 MB / 0.5691 GB, free: 84.28 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01209/0.8951, allocations: 6.503 MB / 0.5754 GB, free: 81.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004132/0.8992, allocations: 3.561 MB / 0.5789 GB, free: 80.01 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0183/0.9176, allocations: 14.31 MB / 0.5929 GB, free: 70.42 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.9176, allocations: 70.78 kB / 0.593 GB, free: 70.36 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 6.232e-06/0.9177, allocations: 4 kB / 0.593 GB, free: 70.35 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.126/1.044, allocations: 41.95 MB / 0.6339 GB, free: 28.88 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.076e-05/1.044, allocations: 217.9 kB / 0.6341 GB, free: 28.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006724/1.051, allocations: 5.491 MB / 0.6395 GB, free: 23.26 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007327/1.051, allocations: 73.7 kB / 0.6396 GB, free: 23.18 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001895/1.053, allocations: 4.596 MB / 0.644 GB, free: 18.85 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00126/1.054, allocations: 1.303 MB / 0.6453 GB, free: 17.57 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002059/1.057, allocations: 1.785 MB / 0.6471 GB, free: 15.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.461e-05/1.057, allocations: 301.1 kB / 0.6474 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005095/1.062, allocations: 4.62 MB / 0.6519 GB, free: 10.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007178/1.069, allocations: 9.598 MB / 0.6612 GB, free: 14.81 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01873/1.088, allocations: 15.26 MB / 0.6761 GB, free: 13.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001351/1.088, allocations: 48 kB / 0.6762 GB, free: 13.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04312/1.131, allocations: 18.98 MB / 0.6947 GB, free: 10 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002433/1.131, allocations: 84.25 kB / 0.6948 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003187/1.132, allocations: 172 kB / 0.695 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02216/1.154, allocations: 5.775 MB / 0.7006 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007983/1.162, allocations: 2.047 MB / 0.7026 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03704/1.199, allocations: 25.64 MB / 0.7276 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008447/1.207, allocations: 0.5462 MB / 0.7282 GB, free: 7.438 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002132/1.209, allocations: 0.5 MB / 0.7287 GB, free: 6.938 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.008088/1.218, allocations: 3.091 MB / 0.7317 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002195/1.22, allocations: 0.5238 MB / 0.7322 GB, free: 3.305 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03425/1.254, allocations: 12.6 MB / 0.7445 GB, free: 6.633 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001122/1.254, allocations: 55.98 kB / 0.7446 GB, free: 6.578 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.631e-05/1.254, allocations: 11.94 kB / 0.7446 GB, free: 6.566 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.369e-05/1.254, allocations: 15.94 kB / 0.7446 GB, free: 6.551 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3131/1.567, allocations: 24.18 MB / 0.7682 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-05/1.567, allocations: 12.41 kB / 0.7682 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002926/1.57, allocations: 0.5755 MB / 0.7688 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01712/1.588, allocations: 4.81 MB / 0.7735 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000854/1.588, allocations: 60.42 kB / 0.7735 GB, free: 193 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02221/1.611, allocations: 20.91 MB / 0.7939 GB, free: 175.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/1.611, allocations: 11.94 kB / 0.794 GB, free: 175.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02976/1.64, allocations: 17.02 MB / 0.8106 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001579/1.642, allocations: 0.5542 MB / 0.8111 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001241/1.643, allocations: 62.3 kB / 0.8112 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002719/1.646, allocations: 251.6 kB / 0.8114 GB, free: 158 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007583/1.647, allocations: 193.5 kB / 0.8116 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002558/1.647, allocations: 84 kB / 0.8117 GB, free: 157.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004497/1.652, allocations: 3.416 MB / 0.815 GB, free: 154.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.11e-07/1.652, allocations: 0 / 0.815 GB, free: 154.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008314/1.66, allocations: 1.69 MB / 0.8167 GB, free: 152.6 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.02968/1.69, allocations: 17.67 MB / 0.8339 GB, free: 134.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01439/1.704, allocations: 10.64 MB / 0.8443 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/1.704, allocations: 0 / 0.8443 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005131/1.709, allocations: 4.021 MB / 0.8482 GB, free: 120.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004172/1.714, allocations: 0.6534 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.1252/1.839, allocations: 86.11 MB / 0.933 GB, free: 25.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004485/1.843, allocations: 4.617 MB / 0.9375 GB, free: 21.25 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005542/1.849, allocations: 2.979 MB / 0.9404 GB, free: 18.27 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003487/1.852, allocations: 2.917 MB / 0.9432 GB, free: 15.35 MB / 0.545 GB Notification: Performance of SimCode: time 1.182e-06/1.852, allocations: 0 / 0.9432 GB, free: 15.35 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3973/2.25, allocations: 125.3 MB / 1.066 GB, free: 93.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.4/42.65, allocations: 3.984 kB / 1.066 GB, free: 93.2 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