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.001165/0.001165, allocations: 121.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 203.8 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2763, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01584/0.2922, allocations: 15.87 MB / 424.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01045/0.3027, allocations: 5.133 MB / 429.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003102/0.3059, allocations: 107.7 kB / 429.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007956/0.3139, allocations: 4.423 MB / 434.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006356/0.3203, allocations: 2.505 MB / 436.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002472/0.3228, allocations: 1.143 MB / 437.9 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01006/0.3328, allocations: 8.112 MB / 446 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006084/0.339, allocations: 5.307 MB / 451.3 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004251/0.3433, allocations: 2.472 MB / 453.8 MB, free: 4.254 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0048/0.3481, allocations: 3.361 MB / 457.2 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001394/0.3495, allocations: 0.5039 MB / 457.7 MB, free: 388 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002892/0.3524, allocations: 1.483 MB / 459.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002859/0.3553, allocations: 2.977 MB / 462.1 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003819/0.3591, allocations: 3.422 MB / 465.6 MB, free: 8.469 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.3697, allocations: 10.5 MB / 476.1 MB, free: 13.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.3697, allocations: 4 kB / 476.1 MB, free: 13.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3697, allocations: 4 kB / 476.1 MB, free: 13.92 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003566/0.3701, allocations: 4 kB / 476.1 MB, free: 13.92 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.0213/0.3914, allocations: 7.902 MB / 484 MB, free: 5.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.3915, allocations: 8.031 kB / 484 MB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002248/0.3937, allocations: 1.078 MB / 485.1 MB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05148/0.4452, allocations: 8.515 MB / 493.6 MB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.4583, allocations: 5.52 MB / 499.1 MB, free: 6.695 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003822/0.4587, allocations: 348.8 kB / 499.4 MB, free: 6.352 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002018/0.4607, allocations: 463.5 kB / 499.9 MB, free: 5.898 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02882/0.4896, allocations: 14.47 MB / 0.5023 GB, free: 6.496 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003651/0.49, allocations: 67.42 kB / 0.5024 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001712/0.4917, allocations: 219.8 kB / 0.5026 GB, free: 6.215 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00535/0.4971, allocations: 2.828 MB / 0.5054 GB, free: 3.379 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02543/0.5225, allocations: 13.01 MB / 0.5181 GB, free: 6.336 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2965/0.819, allocations: 58.03 MB / 0.5747 GB, free: 83.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01513/0.8342, allocations: 7.675 MB / 0.5822 GB, free: 80.61 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004728/0.839, allocations: 5.007 MB / 0.5871 GB, free: 78.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01634/0.8554, allocations: 12.68 MB / 0.5995 GB, free: 68.47 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.8555, allocations: 72.05 kB / 0.5996 GB, free: 68.39 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.061e-06/0.8555, allocations: 0 / 0.5996 GB, free: 68.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 1.947/2.803, allocations: 411.4 MB / 1.001 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.843e-05/2.803, allocations: 266.7 kB / 1.002 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005982/2.809, allocations: 5.489 MB / 1.007 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001574/2.81, allocations: 111.9 kB / 1.007 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001746/2.812, allocations: 4.009 MB / 1.011 GB, free: 135 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002083/2.814, allocations: 2.004 MB / 1.013 GB, free: 133 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003408/2.817, allocations: 2.065 MB / 1.015 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.974e-05/2.818, allocations: 305.1 kB / 1.015 GB, free: 130.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01099/2.829, allocations: 10.88 MB / 1.026 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0128/2.841, allocations: 14.98 MB / 1.04 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02601/2.867, allocations: 27.13 MB / 1.067 GB, free: 73.96 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.783e-05/2.868, allocations: 40 kB / 1.067 GB, free: 73.93 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5322/3.4, allocations: 140.5 MB / 1.204 GB, free: 126.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.312e-05/3.4, allocations: 64 kB / 1.204 GB, free: 126.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001103/3.4, allocations: 136 kB / 1.204 GB, free: 126 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07291/3.473, allocations: 34.59 MB / 1.238 GB, free: 91.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004766/3.478, allocations: 1.48 MB / 1.24 GB, free: 90.42 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4772/3.955, allocations: 203.1 MB / 1.438 GB, free: 87.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0123/3.967, allocations: 1.71 MB / 1.44 GB, free: 85.91 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002336/3.97, allocations: 0.5193 MB / 1.44 GB, free: 85.39 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.00694/3.977, allocations: 3.091 MB / 1.443 GB, free: 82.43 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002356/3.979, allocations: 0.58 MB / 1.444 GB, free: 82.04 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5326/4.512, allocations: 136.5 MB / 1.577 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.872e-05/4.512, allocations: 58.28 kB / 1.577 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001366/4.512, allocations: 63.11 kB / 1.577 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001076/4.512, allocations: 27.89 kB / 1.577 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6093/5.121, allocations: 206 MB / 1.778 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.857e-05/5.122, allocations: 3.719 kB / 1.778 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/5.123, allocations: 330.8 kB / 1.779 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06817/5.191, allocations: 33.29 MB / 1.811 GB, free: 131.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001713/5.193, allocations: 100 kB / 1.811 GB, free: 131 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4497/5.643, allocations: 185.8 MB / 1.993 GB, free: 143.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/5.643, allocations: 7.312 kB / 1.993 GB, free: 143.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.564/6.207, allocations: 152.3 MB / 2.142 GB, free: 154.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001676/6.209, allocations: 0.6212 MB / 2.142 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003039/6.212, allocations: 99.66 kB / 2.142 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009484/6.221, allocations: 1.487 MB / 2.144 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003995/6.225, allocations: 499.1 kB / 2.144 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001356/6.226, allocations: 147.2 kB / 2.144 GB, free: 154.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005919/6.232, allocations: 3.513 MB / 2.148 GB, free: 154.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.21e-07/6.232, allocations: 4.656 kB / 2.148 GB, free: 154.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01316/6.246, allocations: 3.785 MB / 2.151 GB, free: 153.8 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.3098/6.555, allocations: 152.8 MB / 2.301 GB, free: 33.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2711/6.827, allocations: 33.64 MB / 2.334 GB, free: 178.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/6.827, allocations: 0 / 2.334 GB, free: 178.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0365/6.863, allocations: 20.52 MB / 2.354 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.006462/6.87, allocations: 0.8272 MB / 2.354 GB, free: 177 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9032/7.773, allocations: 353.2 MB / 2.699 GB, free: 25.26 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006999/7.78, allocations: 5.1 MB / 2.704 GB, free: 20.16 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004497/7.785, allocations: 2.064 MB / 2.706 GB, free: 18.09 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003372/7.788, allocations: 3.026 MB / 2.709 GB, free: 15.06 MB / 0.545 GB Notification: Performance of SimCode: time 1.502e-06/7.788, allocations: 0 / 2.709 GB, free: 15.06 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7965/8.584, allocations: 341.3 MB / 3.043 GB, free: 75.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.34/36.93, allocations: 8.891 kB / 3.043 GB, free: 75.89 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 & /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