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.001288/0.001288, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001272/0.001272, allocations: 201.2 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.614/1.614, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 67.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3136, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0172/0.3309, allocations: 14.97 MB / 423.7 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01147/0.3424, allocations: 4.822 MB / 428.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003013/0.3455, allocations: 91.75 kB / 428.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00647/0.352, allocations: 3.161 MB / 431.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007594/0.3596, allocations: 2.51 MB / 434.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002602/0.3622, allocations: 0.9905 MB / 435.3 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.3734, allocations: 7.037 MB / 442.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006412/0.3798, allocations: 4.337 MB / 446.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004049/0.3839, allocations: 2.219 MB / 448.9 MB, free: 9.188 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005248/0.3892, allocations: 3.224 MB / 452.1 MB, free: 5.953 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001494/0.3907, allocations: 484 kB / 452.6 MB, free: 5.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003268/0.394, allocations: 1.475 MB / 454.1 MB, free: 4.004 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003354/0.3974, allocations: 2.832 MB / 456.9 MB, free: 1.164 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005176/0.4026, allocations: 3.285 MB / 460.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01423/0.4168, allocations: 10.54 MB / 470.7 MB, free: 3.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4169, allocations: 0 / 470.7 MB, free: 3.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4169, allocations: 0 / 470.7 MB, free: 3.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003494/0.4173, allocations: 0 / 470.7 MB, free: 3.277 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.01965/0.4369, allocations: 7.624 MB / 478.3 MB, free: 11.56 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.437, allocations: 8.031 kB / 478.4 MB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003416/0.4404, allocations: 1.137 MB / 479.5 MB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04285/0.4833, allocations: 7.555 MB / 487 MB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01245/0.4958, allocations: 4.659 MB / 491.7 MB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004636/0.4963, allocations: 320.2 kB / 492 MB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002335/0.4987, allocations: 435.7 kB / 492.4 MB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03317/0.5318, allocations: 15.6 MB / 0.4961 GB, free: 12.84 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000295/0.5322, allocations: 63.5 kB / 0.4962 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001843/0.5341, allocations: 203.8 kB / 0.4964 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005707/0.5398, allocations: 3.22 MB / 0.4995 GB, free: 9.352 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03028/0.5701, allocations: 13.91 MB / 0.5131 GB, free: 11.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3153/0.8854, allocations: 57.19 MB / 0.569 GB, free: 84.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01242/0.8979, allocations: 6.494 MB / 0.5753 GB, free: 81.39 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003875/0.9018, allocations: 3.559 MB / 0.5788 GB, free: 79.97 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01855/0.9204, allocations: 14.31 MB / 0.5928 GB, free: 70.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/0.9205, allocations: 71.97 kB / 0.5928 GB, free: 70.36 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 6.261e-06/0.9205, allocations: 0.8125 kB / 0.5928 GB, free: 70.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.1268/1.047, allocations: 41.95 MB / 0.6338 GB, free: 28.89 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.711e-05/1.047, allocations: 217.9 kB / 0.634 GB, free: 28.64 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006981/1.054, allocations: 5.495 MB / 0.6394 GB, free: 23.27 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008452/1.055, allocations: 69.7 kB / 0.6394 GB, free: 23.19 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002409/1.058, allocations: 4.593 MB / 0.6439 GB, free: 18.86 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001527/1.059, allocations: 1.303 MB / 0.6452 GB, free: 17.57 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002728/1.062, allocations: 1.785 MB / 0.6469 GB, free: 15.78 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.63e-05/1.062, allocations: 313 kB / 0.6472 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005546/1.068, allocations: 4.62 MB / 0.6518 GB, free: 10.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00885/1.077, allocations: 9.594 MB / 0.6611 GB, free: 14.81 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02293/1.1, allocations: 15.26 MB / 0.676 GB, free: 13.08 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001922/1.1, allocations: 52 kB / 0.6761 GB, free: 13.03 MB / 494.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04928/1.149, allocations: 18.98 MB / 0.6946 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001377/1.149, allocations: 84.06 kB / 0.6947 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000257/1.149, allocations: 172 kB / 0.6949 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02267/1.172, allocations: 5.773 MB / 0.7005 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007895/1.18, allocations: 2.047 MB / 0.7025 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03897/1.219, allocations: 25.64 MB / 0.7275 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00797/1.227, allocations: 0.5462 MB / 0.7281 GB, free: 7.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001758/1.229, allocations: 0.5 MB / 0.7286 GB, free: 6.93 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.006134/1.235, allocations: 3.091 MB / 0.7316 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001347/1.236, allocations: 0.52 MB / 0.7321 GB, free: 3.301 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03248/1.269, allocations: 12.6 MB / 0.7444 GB, free: 6.629 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001106/1.269, allocations: 55.98 kB / 0.7444 GB, free: 6.574 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.393e-05/1.269, allocations: 8 kB / 0.7444 GB, free: 6.566 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.067e-05/1.269, allocations: 15.94 kB / 0.7445 GB, free: 6.551 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2845/1.554, allocations: 24.19 MB / 0.7681 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.427e-05/1.554, allocations: 7.625 kB / 0.7681 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00296/1.557, allocations: 0.5736 MB / 0.7687 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01731/1.574, allocations: 4.814 MB / 0.7734 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000735/1.575, allocations: 54.44 kB / 0.7734 GB, free: 193 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02164/1.596, allocations: 20.92 MB / 0.7938 GB, free: 175.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/1.597, allocations: 15.88 kB / 0.7938 GB, free: 175.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03096/1.628, allocations: 17.01 MB / 0.8105 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001742/1.629, allocations: 0.5555 MB / 0.811 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001639/1.631, allocations: 58.28 kB / 0.8111 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003288/1.634, allocations: 251.6 kB / 0.8113 GB, free: 158 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009034/1.635, allocations: 196.9 kB / 0.8115 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002564/1.635, allocations: 83.98 kB / 0.8116 GB, free: 157.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00491/1.64, allocations: 3.416 MB / 0.8149 GB, free: 154.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.5e-07/1.64, allocations: 0 / 0.8149 GB, free: 154.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008271/1.649, allocations: 1.686 MB / 0.8166 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.03087/1.68, allocations: 17.68 MB / 0.8338 GB, free: 134.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01406/1.694, allocations: 10.63 MB / 0.8442 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/1.694, allocations: 0 / 0.8442 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005064/1.699, allocations: 4.023 MB / 0.8481 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.004351/1.703, allocations: 0.6617 MB / 0.8488 GB, free: 119.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1298/1.833, allocations: 86.11 MB / 0.9329 GB, free: 25.89 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005194/1.838, allocations: 4.619 MB / 0.9374 GB, free: 21.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006224/1.844, allocations: 2.979 MB / 0.9403 GB, free: 18.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004238/1.849, allocations: 2.917 MB / 0.9431 GB, free: 15.33 MB / 0.545 GB Notification: Performance of SimCode: time 1.233e-06/1.849, allocations: 0 / 0.9431 GB, free: 15.33 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4158/2.265, allocations: 125.3 MB / 1.065 GB, free: 93.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.42/43.68, allocations: 7.984 kB / 1.065 GB, free: 93.19 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.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