Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001182/0.001182, allocations: 118.8 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.001263/0.001263, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3041, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01595/0.3201, allocations: 15.87 MB / 424.6 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01092/0.3311, allocations: 5.12 MB / 429.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003629/0.3348, allocations: 111.6 kB / 429.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008575/0.3434, allocations: 4.435 MB / 434.3 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007584/0.3511, allocations: 2.575 MB / 436.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002899/0.354, allocations: 1.151 MB / 438 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01196/0.366, allocations: 8.1 MB / 446.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008009/0.374, allocations: 5.31 MB / 451.4 MB, free: 6.676 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005372/0.3794, allocations: 2.461 MB / 453.9 MB, free: 4.207 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005569/0.385, allocations: 3.361 MB / 457.3 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001902/0.3869, allocations: 0.5039 MB / 457.8 MB, free: 340 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004547/0.3915, allocations: 1.494 MB / 459.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004674/0.3962, allocations: 2.981 MB / 462.2 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007611/0.4039, allocations: 3.418 MB / 465.7 MB, free: 8.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01749/0.4214, allocations: 10.54 MB / 476.2 MB, free: 13.83 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.081e-05/0.4214, allocations: 4 kB / 476.2 MB, free: 13.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.4215, allocations: 0 / 476.2 MB, free: 13.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004948/0.422, allocations: 0 / 476.2 MB, free: 13.83 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02495/0.4469, allocations: 8.102 MB / 484.3 MB, free: 5.629 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.447, allocations: 8.031 kB / 484.3 MB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003493/0.4505, allocations: 1.086 MB / 485.4 MB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05512/0.5056, allocations: 8.566 MB / 494 MB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01479/0.5205, allocations: 5.538 MB / 499.5 MB, free: 6.324 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003201/0.5209, allocations: 344.9 kB / 499.8 MB, free: 5.984 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001769/0.5226, allocations: 467.7 kB / 0.4886 GB, free: 5.527 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02933/0.552, allocations: 14.46 MB / 0.5027 GB, free: 6.133 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002513/0.5523, allocations: 75.41 kB / 0.5028 GB, free: 6.059 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007576/0.5531, allocations: 215.8 kB / 0.503 GB, free: 5.848 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005824/0.5589, allocations: 2.832 MB / 0.5057 GB, free: 3.008 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02676/0.5857, allocations: 13.01 MB / 0.5184 GB, free: 5.965 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3281/0.9138, allocations: 58.13 MB / 0.5752 GB, free: 83.03 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01557/0.9294, allocations: 7.678 MB / 0.5827 GB, free: 80.32 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004893/0.9344, allocations: 5.008 MB / 0.5876 GB, free: 77.79 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01804/0.9524, allocations: 12.69 MB / 0.6 GB, free: 67.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.106e-05/0.9525, allocations: 84.17 kB / 0.6001 GB, free: 67.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 5.46e-06/0.9526, allocations: 0 / 0.6001 GB, free: 67.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.089/3.042, allocations: 411.7 MB / 1.002 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/3.042, allocations: 265.7 kB / 1.002 GB, free: 143 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008124/3.05, allocations: 5.494 MB / 1.008 GB, free: 137.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00198/3.052, allocations: 113.7 kB / 1.008 GB, free: 137.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002327/3.054, allocations: 4.157 MB / 1.012 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003049/3.057, allocations: 2.097 MB / 1.014 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004233/3.062, allocations: 2.08 MB / 1.016 GB, free: 130.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.525e-05/3.062, allocations: 301.1 kB / 1.016 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01197/3.074, allocations: 10.88 MB / 1.027 GB, free: 119.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01403/3.088, allocations: 15 MB / 1.042 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02847/3.116, allocations: 27.12 MB / 1.068 GB, free: 73.38 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001198/3.116, allocations: 40 kB / 1.068 GB, free: 73.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5633/3.68, allocations: 140.5 MB / 1.205 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.775e-05/3.68, allocations: 70.59 kB / 1.205 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001484/3.68, allocations: 136 kB / 1.205 GB, free: 124.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07559/3.756, allocations: 34.59 MB / 1.239 GB, free: 90.76 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004565/3.76, allocations: 1.479 MB / 1.241 GB, free: 89.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5237/4.284, allocations: 203.2 MB / 1.439 GB, free: 86.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01428/4.298, allocations: 1.707 MB / 1.441 GB, free: 84.79 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003269/4.302, allocations: 0.5193 MB / 1.441 GB, free: 84.27 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.009869/4.311, allocations: 3.094 MB / 1.444 GB, free: 81.39 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002837/4.314, allocations: 0.6159 MB / 1.445 GB, free: 81.02 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5989/4.913, allocations: 136.5 MB / 1.578 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.88e-05/4.913, allocations: 56 kB / 1.578 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001847/4.914, allocations: 60 kB / 1.578 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001317/4.914, allocations: 27.89 kB / 1.578 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6478/5.562, allocations: 206 MB / 1.78 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.777e-05/5.562, allocations: 8.781 kB / 1.78 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/5.563, allocations: 332.8 kB / 1.78 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07067/5.634, allocations: 33.3 MB / 1.812 GB, free: 130 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001895/5.636, allocations: 100.9 kB / 1.813 GB, free: 129.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4757/6.112, allocations: 185.9 MB / 1.994 GB, free: 142.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/6.112, allocations: 15.64 kB / 1.994 GB, free: 142.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5833/6.695, allocations: 152.4 MB / 2.143 GB, free: 154.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001988/6.697, allocations: 0.6598 MB / 2.143 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002615/6.7, allocations: 97 kB / 2.144 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0095/6.709, allocations: 1.481 MB / 2.145 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003737/6.713, allocations: 0.4942 MB / 2.146 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001108/6.714, allocations: 143.8 kB / 2.146 GB, free: 154.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005217/6.719, allocations: 3.518 MB / 2.149 GB, free: 153.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/6.719, allocations: 3.391 kB / 2.149 GB, free: 153.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01491/6.734, allocations: 3.781 MB / 2.153 GB, free: 153.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.3168/7.051, allocations: 152.9 MB / 2.302 GB, free: 32.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.3025/7.354, allocations: 33.68 MB / 2.335 GB, free: 178.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/7.354, allocations: 0.5 kB / 2.335 GB, free: 178.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03676/7.39, allocations: 20.56 MB / 2.355 GB, free: 177.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006/7.396, allocations: 0.8292 MB / 2.356 GB, free: 177.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9608/8.357, allocations: 353.5 MB / 2.701 GB, free: 24.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006101/8.363, allocations: 5.097 MB / 2.706 GB, free: 19.11 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004023/8.367, allocations: 2.068 MB / 2.708 GB, free: 17.04 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002828/8.37, allocations: 3.022 MB / 2.711 GB, free: 14.01 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/8.37, allocations: 0 / 2.711 GB, free: 14.01 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8793/9.25, allocations: 334.1 MB / 3.037 GB, free: 81.87 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.3/38.55, allocations: 10.53 kB / 3.037 GB, free: 81.87 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_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_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches