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.001206/0.001206, allocations: 119.5 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.001354/0.001354, 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.374/1.374, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 55.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.309, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01768/0.3267, allocations: 15.87 MB / 424.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01171/0.3385, allocations: 5.12 MB / 429.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003475/0.342, allocations: 115.6 kB / 429.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009003/0.3511, allocations: 4.435 MB / 434.3 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008398/0.3596, allocations: 2.568 MB / 436.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003427/0.363, allocations: 1.147 MB / 438 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01304/0.3761, allocations: 8.104 MB / 446.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008873/0.3851, allocations: 5.314 MB / 451.4 MB, free: 6.656 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005151/0.3903, allocations: 2.465 MB / 453.9 MB, free: 4.184 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005893/0.3962, allocations: 3.357 MB / 457.3 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002133/0.3984, allocations: 0.5039 MB / 457.8 MB, free: 320 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004522/0.4029, allocations: 1.494 MB / 459.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004698/0.4077, allocations: 2.977 MB / 462.2 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00698/0.4147, allocations: 3.426 MB / 465.7 MB, free: 8.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01589/0.4307, allocations: 10.54 MB / 476.2 MB, free: 13.81 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.4307, allocations: 0 / 476.2 MB, free: 13.81 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.4307, allocations: 0 / 476.2 MB, free: 13.81 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000442/0.4312, allocations: 0 / 476.2 MB, free: 13.81 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.0226/0.4538, allocations: 8.102 MB / 484.3 MB, free: 5.609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.973e-05/0.4539, allocations: 8.031 kB / 484.3 MB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003458/0.4573, allocations: 1.086 MB / 485.4 MB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05146/0.5088, allocations: 8.554 MB / 493.9 MB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/0.5215, allocations: 5.554 MB / 499.5 MB, free: 6.301 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003624/0.5219, allocations: 340.8 kB / 499.8 MB, free: 5.965 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002044/0.524, allocations: 463.7 kB / 0.4886 GB, free: 5.512 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02817/0.5522, allocations: 14.47 MB / 0.5027 GB, free: 6.109 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003111/0.5525, allocations: 79.45 kB / 0.5028 GB, free: 6.031 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001249/0.5538, allocations: 211.8 kB / 0.503 GB, free: 5.824 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005403/0.5592, allocations: 2.836 MB / 0.5057 GB, free: 2.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02782/0.587, allocations: 13 MB / 0.5184 GB, free: 5.949 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3647/0.9518, allocations: 58.14 MB / 0.5752 GB, free: 82.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01618/0.968, allocations: 7.679 MB / 0.5827 GB, free: 80.1 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005979/0.9741, allocations: 5.004 MB / 0.5876 GB, free: 77.57 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02091/0.995, allocations: 12.69 MB / 0.6 GB, free: 67.77 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.275e-05/0.9951, allocations: 76.25 kB / 0.6001 GB, free: 67.69 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.362e-06/0.9952, allocations: 3.938 kB / 0.6001 GB, free: 67.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 1.994/2.989, allocations: 411.7 MB / 1.002 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/2.989, allocations: 262.5 kB / 1.002 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008131/2.997, allocations: 5.502 MB / 1.008 GB, free: 137.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.002359/3, allocations: 111.2 kB / 1.008 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002822/3.002, allocations: 4.149 MB / 1.012 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003115/3.006, allocations: 2.108 MB / 1.014 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005096/3.011, allocations: 2.077 MB / 1.016 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.742e-05/3.011, allocations: 302.1 kB / 1.016 GB, free: 130 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01264/3.023, allocations: 10.88 MB / 1.027 GB, free: 119.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01524/3.039, allocations: 14.99 MB / 1.042 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03006/3.069, allocations: 27.12 MB / 1.068 GB, free: 73.34 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001332/3.069, allocations: 40 kB / 1.068 GB, free: 73.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5894/3.658, allocations: 140.5 MB / 1.205 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.12e-05/3.658, allocations: 67.98 kB / 1.205 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/3.659, allocations: 140 kB / 1.205 GB, free: 124.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07397/3.733, allocations: 34.57 MB / 1.239 GB, free: 90.74 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005235/3.738, allocations: 1.488 MB / 1.241 GB, free: 89.38 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5116/4.25, allocations: 203.2 MB / 1.439 GB, free: 86.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01317/4.263, allocations: 1.703 MB / 1.441 GB, free: 84.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00252/4.265, allocations: 0.5305 MB / 1.441 GB, free: 84.2 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.00641/4.272, allocations: 3.08 MB / 1.444 GB, free: 81.33 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001791/4.274, allocations: 0.6103 MB / 1.445 GB, free: 80.94 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.575/4.848, allocations: 136.5 MB / 1.578 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.217e-05/4.849, allocations: 62.94 kB / 1.578 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000135/4.849, allocations: 56 kB / 1.578 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001091/4.849, allocations: 31.89 kB / 1.578 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6435/5.492, allocations: 206 MB / 1.78 GB, free: 154.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.269e-05/5.493, allocations: 7.531 kB / 1.78 GB, free: 154.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001597/5.494, allocations: 329.5 kB / 1.78 GB, free: 154.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07081/5.565, allocations: 33.3 MB / 1.812 GB, free: 130 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001864/5.567, allocations: 96 kB / 1.813 GB, free: 129.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5359/6.103, allocations: 185.9 MB / 1.994 GB, free: 142.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.749e-06/6.103, allocations: 11.75 kB / 1.994 GB, free: 142.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5777/6.681, allocations: 152.4 MB / 2.143 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001865/6.682, allocations: 0.6605 MB / 2.143 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002764/6.685, allocations: 99.36 kB / 2.144 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009068/6.694, allocations: 1.486 MB / 2.145 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004244/6.699, allocations: 0.4894 MB / 2.146 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001038/6.7, allocations: 138.1 kB / 2.146 GB, free: 154.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005555/6.705, allocations: 3.522 MB / 2.149 GB, free: 153.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/6.705, allocations: 0 / 2.149 GB, free: 153.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01733/6.723, allocations: 3.779 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.3091/7.032, allocations: 152.9 MB / 2.302 GB, free: 32.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.3174/7.349, allocations: 33.68 MB / 2.335 GB, free: 178 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/7.349, allocations: 0.7188 kB / 2.335 GB, free: 178 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03776/7.387, allocations: 20.56 MB / 2.355 GB, free: 177.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00742/7.394, allocations: 0.8392 MB / 2.356 GB, free: 177 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9627/8.357, allocations: 353.5 MB / 2.701 GB, free: 24.13 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008561/8.366, allocations: 5.097 MB / 2.706 GB, free: 19.02 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00467/8.37, allocations: 2.067 MB / 2.708 GB, free: 16.96 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003904/8.374, allocations: 3.026 MB / 2.711 GB, free: 13.93 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/8.374, allocations: 0 / 2.711 GB, free: 13.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9256/9.3, allocations: 334.1 MB / 3.037 GB, free: 82.01 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.27/39.57, allocations: 14.42 kB / 3.037 GB, free: 82.01 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