Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 47.36 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09395/0.09498, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01617/0.1112, allocations: 15.91 MB / 366.1 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1967/0.3079, allocations: 5.11 MB / 371.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003897/0.3118, allocations: 112.5 kB / 371.3 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008665/0.3205, allocations: 4.451 MB / 375.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007377/0.3279, allocations: 2.521 MB / 378.3 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002849/0.3308, allocations: 1.149 MB / 379.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01257/0.3434, allocations: 7.964 MB / 387.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006284/0.3497, allocations: 5.332 MB / 392.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004156/0.3539, allocations: 2.449 MB / 395.2 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00415/0.3581, allocations: 3.361 MB / 398.5 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001075/0.3592, allocations: 0.5039 MB / 399 MB, free: 20 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003248/0.3624, allocations: 1.507 MB / 400.5 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003046/0.3655, allocations: 2.954 MB / 403.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004125/0.3696, allocations: 3.437 MB / 406.9 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0142/0.3838, allocations: 10.27 MB / 417.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.527e-06/0.3839, allocations: 4 kB / 417.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3839, allocations: 4 kB / 417.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003855/0.3843, allocations: 4 kB / 417.2 MB, free: 14.13 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.02351/0.4078, allocations: 7.865 MB / 425.1 MB, free: 6.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.4079, allocations: 8.031 kB / 425.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002328/0.4102, allocations: 1.085 MB / 426.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05515/0.4654, allocations: 8.405 MB / 434.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01464/0.4801, allocations: 5.74 MB / 440.3 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003254/0.4804, allocations: 334.4 kB / 440.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001638/0.4821, allocations: 471.9 kB / 441.1 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02584/0.5079, allocations: 14.47 MB / 455.6 MB, free: 7.133 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002122/0.5082, allocations: 71.34 kB / 455.6 MB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000594/0.5088, allocations: 211.6 kB / 455.8 MB, free: 6.902 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005549/0.5143, allocations: 2.838 MB / 458.7 MB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02618/0.5405, allocations: 13.02 MB / 471.7 MB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08576/0.6263, allocations: 58.29 MB / 0.5176 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0184/0.6448, allocations: 7.683 MB / 0.5251 GB, free: 3.688 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1879/0.8327, allocations: 5.004 MB / 0.5299 GB, free: 144.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02575/0.8585, allocations: 12.69 MB / 0.5423 GB, free: 139.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.186e-05/0.8586, allocations: 64.56 kB / 0.5424 GB, free: 139.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 7.535e-06/0.8586, allocations: 0 / 0.5424 GB, free: 139.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.907/2.765, allocations: 411.2 MB / 0.9439 GB, free: 70.83 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/2.765, allocations: 277.5 kB / 0.9442 GB, free: 70.51 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006739/2.772, allocations: 5.489 MB / 0.9495 GB, free: 65.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001738/2.774, allocations: 109.7 kB / 0.9496 GB, free: 65.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002135/2.776, allocations: 4.015 MB / 0.9536 GB, free: 61.82 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00245/2.778, allocations: 2 MB / 0.9555 GB, free: 59.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003681/2.782, allocations: 2.075 MB / 0.9575 GB, free: 57.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.917e-05/2.782, allocations: 301.1 kB / 0.9578 GB, free: 57.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01162/2.794, allocations: 10.88 MB / 0.9685 GB, free: 46.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01436/2.808, allocations: 14.99 MB / 0.9831 GB, free: 29.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0283/2.837, allocations: 27.12 MB / 1.01 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001273/2.837, allocations: 40 kB / 1.01 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5295/3.366, allocations: 140.4 MB / 1.147 GB, free: 38.79 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.433e-05/3.366, allocations: 64 kB / 1.147 GB, free: 38.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001053/3.366, allocations: 140.1 kB / 1.147 GB, free: 38.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2596/3.626, allocations: 34.6 MB / 1.181 GB, free: 129.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006296/3.632, allocations: 1.483 MB / 1.182 GB, free: 129.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4457/4.078, allocations: 203.2 MB / 1.381 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01448/4.093, allocations: 1.714 MB / 1.382 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00307/4.096, allocations: 0.5215 MB / 1.383 GB, free: 109 MB / 462.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.009421/4.105, allocations: 3.088 MB / 1.386 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002752/4.108, allocations: 0.5768 MB / 1.386 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5301/4.638, allocations: 136.4 MB / 1.52 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001415/4.638, allocations: 57.16 kB / 1.52 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002271/4.638, allocations: 63.53 kB / 1.52 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001452/4.639, allocations: 24.39 kB / 1.52 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5529/5.192, allocations: 206.2 MB / 1.721 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-05/5.192, allocations: 4.438 kB / 1.721 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/5.193, allocations: 336.9 kB / 1.721 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07038/5.264, allocations: 33.32 MB / 1.754 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001616/5.265, allocations: 101.9 kB / 1.754 GB, free: 118.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4141/5.679, allocations: 185.8 MB / 1.935 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.669e-06/5.679, allocations: 11.94 kB / 1.935 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5351/6.214, allocations: 152.2 MB / 2.084 GB, free: 116.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002347/6.217, allocations: 0.6234 MB / 2.085 GB, free: 116.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003083/6.22, allocations: 99.11 kB / 2.085 GB, free: 116.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009991/6.23, allocations: 1.479 MB / 2.086 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004187/6.234, allocations: 0.4906 MB / 2.087 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001094/6.235, allocations: 146.6 kB / 2.087 GB, free: 115.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005663/6.241, allocations: 3.518 MB / 2.09 GB, free: 113.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.41e-07/6.241, allocations: 0 / 2.09 GB, free: 113.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0154/6.256, allocations: 3.805 MB / 2.094 GB, free: 110.4 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.5004/6.757, allocations: 152.7 MB / 2.243 GB, free: 119.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.06323/6.82, allocations: 38.67 MB / 2.281 GB, free: 91.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.428e-05/6.82, allocations: 0 / 2.281 GB, free: 91.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03979/6.86, allocations: 20.51 MB / 2.301 GB, free: 71.33 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008635/6.869, allocations: 0.8266 MB / 2.302 GB, free: 70.53 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.103/7.972, allocations: 370.9 MB / 2.664 GB, free: 42.07 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006788/7.979, allocations: 5.103 MB / 2.669 GB, free: 36.98 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004621/7.983, allocations: 2.059 MB / 2.671 GB, free: 35.04 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002894/7.986, allocations: 3.028 MB / 2.674 GB, free: 32.02 MB / 478.1 MB Notification: Performance of SimCode: time 8.41e-07/7.986, allocations: 0 / 2.674 GB, free: 32.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7308/8.717, allocations: 338.2 MB / 3.004 GB, free: 28.19 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.08/25.8, allocations: 7.453 kB / 3.004 GB, free: 28.18 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches