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.001169/0.001169, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 63.58 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09574, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.1942/0.29, allocations: 15.85 MB / 373.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009345/0.2994, allocations: 5.136 MB / 378.6 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002414/0.3018, allocations: 112.5 kB / 378.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006962/0.3088, allocations: 4.432 MB / 383.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005845/0.3147, allocations: 2.494 MB / 385.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002325/0.3171, allocations: 1.145 MB / 386.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009047/0.3261, allocations: 8.1 MB / 394.9 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004903/0.3311, allocations: 5.314 MB / 400.2 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003496/0.3346, allocations: 2.456 MB / 402.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00431/0.3389, allocations: 3.354 MB / 406 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009938/0.3399, allocations: 0.5039 MB / 406.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002736/0.3426, allocations: 1.481 MB / 408 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002323/0.345, allocations: 2.942 MB / 410.9 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003428/0.3484, allocations: 3.417 MB / 414.3 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009437/0.3579, allocations: 10.22 MB / 424.5 MB, free: 8.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3579, allocations: 0 / 424.5 MB, free: 8.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3579, allocations: 0 / 424.5 MB, free: 8.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002576/0.3582, allocations: 0 / 424.5 MB, free: 8.215 MB / 334.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.01709/0.3753, allocations: 7.907 MB / 432.4 MB, free: 228 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.3753, allocations: 8.031 kB / 432.5 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001605/0.3769, allocations: 1.086 MB / 433.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05345/0.4304, allocations: 8.519 MB / 442.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01111/0.4415, allocations: 5.423 MB / 447.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002662/0.4418, allocations: 337.1 kB / 447.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/0.4431, allocations: 467.5 kB / 448.3 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02134/0.4644, allocations: 14.47 MB / 462.7 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001518/0.4646, allocations: 75.27 kB / 462.8 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005122/0.4651, allocations: 211.8 kB / 463 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004824/0.47, allocations: 2.832 MB / 465.8 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02153/0.4915, allocations: 13.01 MB / 478.9 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06919/0.5607, allocations: 58.27 MB / 0.5245 GB, free: 4.902 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1824/0.7432, allocations: 7.68 MB / 0.532 GB, free: 138.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006233/0.7495, allocations: 5.017 MB / 0.5369 GB, free: 137.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02189/0.7714, allocations: 12.69 MB / 0.5493 GB, free: 131.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.529e-05/0.7715, allocations: 66.8 kB / 0.5494 GB, free: 131.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.633e-06/0.7715, allocations: 0 / 0.5494 GB, free: 131.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.927/2.699, allocations: 411.3 MB / 0.9511 GB, free: 81.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/2.699, allocations: 265.6 kB / 0.9513 GB, free: 81.14 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006577/2.706, allocations: 5.495 MB / 0.9567 GB, free: 75.84 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001685/2.707, allocations: 113.7 kB / 0.9568 GB, free: 75.72 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002025/2.709, allocations: 4.008 MB / 0.9607 GB, free: 72.42 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002465/2.712, allocations: 2 MB / 0.9627 GB, free: 70.44 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003772/2.716, allocations: 2.071 MB / 0.9647 GB, free: 68.36 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.904e-05/2.716, allocations: 301.1 kB / 0.965 GB, free: 68.06 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01193/2.728, allocations: 10.88 MB / 0.9756 GB, free: 57.17 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01489/2.743, allocations: 14.99 MB / 0.9903 GB, free: 40.35 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02861/2.771, allocations: 27.12 MB / 1.017 GB, free: 11.36 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001111/2.771, allocations: 47.94 kB / 1.017 GB, free: 11.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5403/3.312, allocations: 140.5 MB / 1.154 GB, free: 36.65 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.871e-05/3.312, allocations: 69.67 kB / 1.154 GB, free: 36.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001156/3.312, allocations: 140 kB / 1.154 GB, free: 36.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07631/3.388, allocations: 34.62 MB / 1.188 GB, free: 1.816 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004997/3.393, allocations: 1.485 MB / 1.189 GB, free: 336 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.8161/4.209, allocations: 203.2 MB / 1.388 GB, free: 123 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01417/4.224, allocations: 1.709 MB / 1.39 GB, free: 122.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002794/4.227, allocations: 0.5205 MB / 1.39 GB, free: 122.8 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.00815/4.235, allocations: 3.096 MB / 1.393 GB, free: 121.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002028/4.237, allocations: 0.5762 MB / 1.394 GB, free: 121.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2996/4.536, allocations: 136.5 MB / 1.527 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001042/4.537, allocations: 60.3 kB / 1.527 GB, free: 11.33 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001846/4.537, allocations: 60 kB / 1.527 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001245/4.537, allocations: 27.89 kB / 1.527 GB, free: 11.25 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7113/5.248, allocations: 206.2 MB / 1.729 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.964e-05/5.248, allocations: 7.844 kB / 1.729 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/5.25, allocations: 333.6 kB / 1.729 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06882/5.319, allocations: 33.33 MB / 1.761 GB, free: 121.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001734/5.32, allocations: 102.1 kB / 1.761 GB, free: 121.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4214/5.742, allocations: 185.8 MB / 1.943 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/5.742, allocations: 12.69 kB / 1.943 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4708/6.213, allocations: 152.3 MB / 2.092 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001376/6.214, allocations: 0.6293 MB / 2.092 GB, free: 120.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002409/6.216, allocations: 96.94 kB / 2.092 GB, free: 120.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008807/6.225, allocations: 1.487 MB / 2.094 GB, free: 119.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004053/6.229, allocations: 496.2 kB / 2.094 GB, free: 119.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001406/6.231, allocations: 149.5 kB / 2.094 GB, free: 119.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004569/6.235, allocations: 3.516 MB / 2.098 GB, free: 118.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/6.235, allocations: 3.344 kB / 2.098 GB, free: 118.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01159/6.247, allocations: 3.784 MB / 2.102 GB, free: 118.1 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.48/6.727, allocations: 152.8 MB / 2.251 GB, free: 119.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05384/6.781, allocations: 38.68 MB / 2.289 GB, free: 103.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/6.781, allocations: 4 kB / 2.289 GB, free: 103.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03206/6.813, allocations: 20.52 MB / 2.309 GB, free: 84.56 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004566/6.818, allocations: 0.8329 MB / 2.309 GB, free: 83.76 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9901/7.808, allocations: 371 MB / 2.672 GB, free: 70.72 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005273/7.813, allocations: 5.096 MB / 2.677 GB, free: 66.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004071/7.817, allocations: 2.065 MB / 2.679 GB, free: 64.46 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002414/7.819, allocations: 3.026 MB / 2.682 GB, free: 63.96 MB / 494.1 MB Notification: Performance of SimCode: time 8.22e-07/7.819, allocations: 0 / 2.682 GB, free: 63.96 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7719/8.591, allocations: 338.1 MB / 3.012 GB, free: 70.01 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.21/27.8, allocations: 20.31 kB / 3.012 GB, free: 69.99 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