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.0009872/0.0009872, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 65.08 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09336/0.09455, allocations: 50.53 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2148/0.3093, allocations: 74.84 MB / 431.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03477/0.3442, allocations: 14.74 MB / 446.5 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01365/0.3578, allocations: 343.1 kB / 446.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007417/0.3653, allocations: 4.408 MB / 451.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005321/0.3707, allocations: 2.347 MB / 453.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001906/0.3726, allocations: 1.057 MB / 454.6 MB, free: 9.777 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01102/0.3836, allocations: 11.32 MB / 465.9 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004951/0.3886, allocations: 5.196 MB / 471.1 MB, free: 9.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002498/0.3911, allocations: 2.184 MB / 473.3 MB, free: 7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003411/0.3945, allocations: 3.587 MB / 476.9 MB, free: 3.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006125/0.3951, allocations: 356 kB / 477.2 MB, free: 3.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002193/0.3973, allocations: 1.397 MB / 478.6 MB, free: 1.656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00206/0.3994, allocations: 2.828 MB / 481.5 MB, free: 14.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002611/0.402, allocations: 3.246 MB / 484.7 MB, free: 11.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008755/0.4108, allocations: 10.07 MB / 494.8 MB, free: 1.453 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.4108, allocations: 0 / 494.8 MB, free: 1.453 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4108, allocations: 8 kB / 494.8 MB, free: 1.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001778/0.411, allocations: 0 / 494.8 MB, free: 1.445 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.01507/0.4261, allocations: 7.912 MB / 0.4909 GB, free: 9.449 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.4262, allocations: 8.031 kB / 0.4909 GB, free: 9.441 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001333/0.4275, allocations: 1.074 MB / 0.492 GB, free: 8.355 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04836/0.4759, allocations: 8.519 MB / 0.5003 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01095/0.4868, allocations: 5.411 MB / 0.5056 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000272/0.4871, allocations: 345.1 kB / 0.5059 GB, free: 9.984 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/0.4886, allocations: 463.6 kB / 0.5064 GB, free: 9.531 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02478/0.5134, allocations: 14.46 MB / 0.5205 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002528/0.5137, allocations: 79.27 kB / 0.5206 GB, free: 10.06 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001047/0.5147, allocations: 215.8 kB / 0.5208 GB, free: 9.848 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00495/0.5197, allocations: 2.84 MB / 0.5235 GB, free: 6.996 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1972/0.7169, allocations: 13 MB / 0.5362 GB, free: 141 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05542/0.7723, allocations: 58.29 MB / 0.5931 GB, free: 98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01415/0.7865, allocations: 7.689 MB / 0.6007 GB, free: 90.17 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004149/0.7907, allocations: 5.003 MB / 0.6055 GB, free: 85.15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01339/0.8041, allocations: 12.69 MB / 0.6179 GB, free: 72.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.8042, allocations: 72.69 kB / 0.618 GB, free: 72.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.5e-06/0.8042, allocations: 3.984 kB / 0.618 GB, free: 72.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.771/2.575, allocations: 411.3 MB / 1.02 GB, free: 25.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.797e-05/2.575, allocations: 269.7 kB / 1.02 GB, free: 24.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005689/2.581, allocations: 5.491 MB / 1.025 GB, free: 19.43 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001481/2.583, allocations: 113.7 kB / 1.025 GB, free: 19.31 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001683/2.584, allocations: 4.004 MB / 1.029 GB, free: 15.31 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002104/2.586, allocations: 2.003 MB / 1.031 GB, free: 13.33 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1548/2.741, allocations: 2.067 MB / 1.033 GB, free: 140.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.035e-05/2.741, allocations: 306.9 kB / 1.034 GB, free: 140.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01499/2.756, allocations: 10.88 MB / 1.044 GB, free: 137.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01698/2.773, allocations: 15 MB / 1.059 GB, free: 127.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02877/2.802, allocations: 27.11 MB / 1.085 GB, free: 111.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001007/2.802, allocations: 44 kB / 1.085 GB, free: 111.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4975/3.3, allocations: 140.5 MB / 1.223 GB, free: 120.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.711e-05/3.3, allocations: 64.31 kB / 1.223 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001476/3.3, allocations: 143.9 kB / 1.223 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07551/3.376, allocations: 34.59 MB / 1.257 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004621/3.38, allocations: 1.479 MB / 1.258 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4123/3.793, allocations: 190.2 MB / 1.444 GB, free: 101.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01194/3.805, allocations: 1.714 MB / 1.445 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002257/3.807, allocations: 0.5241 MB / 1.446 GB, free: 99.79 MB / 478.1 MB 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.005931/3.813, allocations: 3.084 MB / 1.449 GB, free: 97.23 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001701/3.814, allocations: 0.5818 MB / 1.45 GB, free: 96.96 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4525/4.267, allocations: 136.5 MB / 1.583 GB, free: 124.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.317e-05/4.267, allocations: 63.25 kB / 1.583 GB, free: 124.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001132/4.267, allocations: 60.91 kB / 1.583 GB, free: 124.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001018/4.267, allocations: 27.89 kB / 1.583 GB, free: 124.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4935/4.761, allocations: 206.2 MB / 1.784 GB, free: 101 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.374e-05/4.761, allocations: 8 kB / 1.784 GB, free: 101 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/4.762, allocations: 331.2 kB / 1.785 GB, free: 100.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06592/4.828, allocations: 33.71 MB / 1.818 GB, free: 71.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00149/4.83, allocations: 99.98 kB / 1.818 GB, free: 71.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3503/5.18, allocations: 173.1 MB / 1.987 GB, free: 72.27 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/5.18, allocations: 11.56 kB / 1.987 GB, free: 72.27 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.457/5.637, allocations: 152.3 MB / 2.136 GB, free: 90.89 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001761/5.639, allocations: 0.6267 MB / 2.136 GB, free: 90.61 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003653/5.643, allocations: 97.03 kB / 2.136 GB, free: 90.58 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008553/5.651, allocations: 1.485 MB / 2.138 GB, free: 89.16 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003737/5.655, allocations: 0.4897 MB / 2.138 GB, free: 88.74 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009562/5.656, allocations: 146.9 kB / 2.138 GB, free: 88.64 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004382/5.66, allocations: 3.517 MB / 2.142 GB, free: 86.12 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.11e-07/5.66, allocations: 0 / 2.142 GB, free: 86.12 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01497/5.675, allocations: 3.785 MB / 2.145 GB, free: 82.66 MB / 478.1 MB 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.4614/6.137, allocations: 152.8 MB / 2.295 GB, free: 103.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05117/6.188, allocations: 33.52 MB / 2.327 GB, free: 72.05 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/6.188, allocations: 4 kB / 2.327 GB, free: 72.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03474/6.223, allocations: 20.5 MB / 2.347 GB, free: 51.61 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006875/6.23, allocations: 0.785 MB / 2.348 GB, free: 50.85 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.067/7.297, allocations: 373.9 MB / 2.713 GB, free: 17.96 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006618/7.304, allocations: 5.094 MB / 2.718 GB, free: 12.88 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004734/7.308, allocations: 2.063 MB / 2.72 GB, free: 10.93 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003236/7.312, allocations: 3.022 MB / 2.723 GB, free: 7.91 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/7.312, allocations: 4 kB / 2.723 GB, free: 7.906 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6911/8.003, allocations: 328.6 MB / 3.044 GB, free: 43.09 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001375/8.003, allocations: 239.4 kB / 3.044 GB, free: 42.84 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.82/14.82, allocations: 0 / 3.044 GB, free: 42.84 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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