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.001348/0.001348, allocations: 121.1 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.001315/0.001315, allocations: 203.8 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.406/1.406, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 71.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2683, allocations: 50.55 MB / 408.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01849/0.2869, allocations: 15.88 MB / 424.7 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01202/0.2989, allocations: 5.124 MB / 429.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003786/0.3028, allocations: 111.6 kB / 429.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009106/0.3119, allocations: 4.427 MB / 434.4 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008075/0.3201, allocations: 2.493 MB / 436.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002966/0.323, allocations: 1.147 MB / 438 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01294/0.336, allocations: 8.1 MB / 446.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007349/0.3434, allocations: 5.314 MB / 451.4 MB, free: 6.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00502/0.3485, allocations: 2.457 MB / 453.9 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005649/0.3541, allocations: 3.357 MB / 457.2 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001903/0.3561, allocations: 0.5 MB / 457.7 MB, free: 336 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003916/0.36, allocations: 1.487 MB / 459.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003989/0.364, allocations: 2.938 MB / 462.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00544/0.3695, allocations: 3.422 MB / 465.6 MB, free: 8.453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01492/0.3844, allocations: 10.54 MB / 476.1 MB, free: 13.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.3845, allocations: 0 / 476.1 MB, free: 13.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3845, allocations: 0 / 476.1 MB, free: 13.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003961/0.3849, allocations: 8 kB / 476.1 MB, free: 13.86 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.02375/0.4087, allocations: 8.099 MB / 484.2 MB, free: 5.668 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.4087, allocations: 12.03 kB / 484.2 MB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002663/0.4114, allocations: 1.086 MB / 485.3 MB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05726/0.4687, allocations: 8.554 MB / 493.9 MB, free: 11.99 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.4817, allocations: 5.542 MB / 499.4 MB, free: 6.367 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003751/0.4821, allocations: 344.8 kB / 499.8 MB, free: 6.027 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001921/0.4841, allocations: 463.7 kB / 0.4885 GB, free: 5.574 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02971/0.5138, allocations: 14.47 MB / 0.5026 GB, free: 6.172 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002276/0.5141, allocations: 75.41 kB / 0.5027 GB, free: 6.098 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007759/0.5148, allocations: 211.8 kB / 0.5029 GB, free: 5.891 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005853/0.5207, allocations: 2.832 MB / 0.5057 GB, free: 3.051 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02788/0.5486, allocations: 13.01 MB / 0.5184 GB, free: 6.012 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2856/0.8342, allocations: 58.13 MB / 0.5751 GB, free: 82.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01483/0.8491, allocations: 7.677 MB / 0.5826 GB, free: 80.08 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004889/0.854, allocations: 5.012 MB / 0.5875 GB, free: 77.54 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01423/0.8683, allocations: 12.69 MB / 0.5999 GB, free: 67.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.8684, allocations: 72.52 kB / 0.6 GB, free: 67.62 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 5.229e-06/0.8684, allocations: 0 / 0.6 GB, free: 67.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.072/2.941, allocations: 411.7 MB / 1.002 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.076e-05/2.941, allocations: 269.1 kB / 1.002 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00606/2.947, allocations: 5.497 MB / 1.008 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00161/2.948, allocations: 109.7 kB / 1.008 GB, free: 137.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001944/2.95, allocations: 4.154 MB / 1.012 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002469/2.953, allocations: 2.095 MB / 1.014 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003742/2.957, allocations: 2.084 MB / 1.016 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.802e-05/2.957, allocations: 301.7 kB / 1.016 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01181/2.968, allocations: 10.88 MB / 1.027 GB, free: 119 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01345/2.982, allocations: 14.99 MB / 1.041 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02796/3.01, allocations: 27.13 MB / 1.068 GB, free: 73.22 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001535/3.01, allocations: 40 kB / 1.068 GB, free: 73.18 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5277/3.538, allocations: 140.5 MB / 1.205 GB, free: 125 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.986e-05/3.538, allocations: 64 kB / 1.205 GB, free: 124.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-05/3.538, allocations: 137.1 kB / 1.205 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07331/3.611, allocations: 34.59 MB / 1.239 GB, free: 90.61 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004183/3.616, allocations: 1.475 MB / 1.241 GB, free: 89.26 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4554/4.071, allocations: 203.2 MB / 1.439 GB, free: 86.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01213/4.083, allocations: 1.701 MB / 1.441 GB, free: 84.71 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001936/4.085, allocations: 0.5278 MB / 1.441 GB, free: 84.19 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.005209/4.09, allocations: 3.085 MB / 1.444 GB, free: 81.31 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001633/4.092, allocations: 0.6093 MB / 1.445 GB, free: 80.95 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5282/4.62, allocations: 136.5 MB / 1.578 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001038/4.62, allocations: 56 kB / 1.578 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001897/4.621, allocations: 60.5 kB / 1.578 GB, free: 141 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001396/4.621, allocations: 30.36 kB / 1.578 GB, free: 141 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5778/5.199, allocations: 206 MB / 1.78 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.181e-05/5.199, allocations: 7.312 kB / 1.78 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001508/5.2, allocations: 326.8 kB / 1.78 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06857/5.269, allocations: 33.3 MB / 1.812 GB, free: 130 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001567/5.27, allocations: 100 kB / 1.812 GB, free: 129.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4724/5.743, allocations: 185.9 MB / 1.994 GB, free: 142.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/5.743, allocations: 11.81 kB / 1.994 GB, free: 142.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5398/6.283, allocations: 152.4 MB / 2.143 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001487/6.284, allocations: 0.6588 MB / 2.143 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002528/6.287, allocations: 104 kB / 2.144 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009179/6.296, allocations: 1.478 MB / 2.145 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003849/6.3, allocations: 0.4913 MB / 2.145 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001097/6.301, allocations: 144.5 kB / 2.146 GB, free: 154.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004891/6.306, allocations: 3.517 MB / 2.149 GB, free: 153.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.01e-07/6.306, allocations: 0 / 2.149 GB, free: 153.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0121/6.318, allocations: 3.783 MB / 2.153 GB, free: 153.3 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.323/6.641, allocations: 152.9 MB / 2.302 GB, free: 32.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2891/6.93, allocations: 33.7 MB / 2.335 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-05/6.93, allocations: 0 / 2.335 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.04263/6.973, allocations: 20.55 MB / 2.355 GB, free: 177.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008395/6.981, allocations: 0.8316 MB / 2.356 GB, free: 177.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9503/7.931, allocations: 353.5 MB / 2.701 GB, free: 24.12 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005793/7.937, allocations: 5.103 MB / 2.706 GB, free: 19.01 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003881/7.941, allocations: 2.064 MB / 2.708 GB, free: 16.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002953/7.944, allocations: 3.026 MB / 2.711 GB, free: 13.92 MB / 0.545 GB Notification: Performance of SimCode: time 1.252e-06/7.944, allocations: 0 / 2.711 GB, free: 13.92 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8076/8.752, allocations: 334.2 MB / 3.037 GB, free: 81.63 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.74/37.49, allocations: 12.06 kB / 3.037 GB, free: 81.62 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.1.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