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.001448/0.001448, allocations: 111.8 kB / 16.63 MB, free: 6.953 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.001637/0.001637, allocations: 193.8 kB / 17.55 MB, free: 6.043 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.453/1.453, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 42.97 kB / 300.2 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1215, allocations: 49.46 MB / 349.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2499/0.3715, allocations: 75.33 MB / 425 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03584/0.4074, allocations: 14.85 MB / 439.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01602/0.4235, allocations: 331.2 kB / 440.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007555/0.4311, allocations: 4.284 MB / 444.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006543/0.4377, allocations: 2.348 MB / 446.8 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002982/0.4407, allocations: 1.081 MB / 447.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01149/0.4522, allocations: 8.538 MB / 456.4 MB, free: 9.785 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007235/0.4594, allocations: 5.579 MB / 462 MB, free: 4.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00402/0.4635, allocations: 2.515 MB / 464.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005451/0.469, allocations: 3.739 MB / 468.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001674/0.4707, allocations: 0.5039 MB / 468.8 MB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003734/0.4744, allocations: 1.514 MB / 470.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003814/0.4783, allocations: 2.989 MB / 473.3 MB, free: 8.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00576/0.4841, allocations: 3.469 MB / 476.7 MB, free: 5.371 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01229/0.4964, allocations: 10.32 MB / 487.1 MB, free: 11.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4964, allocations: 0 / 487.1 MB, free: 11.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4964, allocations: 4 kB / 487.1 MB, free: 11.01 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003656/0.4968, allocations: 0 / 487.1 MB, free: 11.01 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.02041/0.5172, allocations: 7.878 MB / 494.9 MB, free: 3.051 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.5173, allocations: 8.031 kB / 495 MB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003014/0.5203, allocations: 1.082 MB / 496 MB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05326/0.5736, allocations: 8.406 MB / 0.4926 GB, free: 9.523 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01258/0.5862, allocations: 5.731 MB / 0.4982 GB, free: 3.711 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004077/0.5866, allocations: 341.1 kB / 0.4985 GB, free: 3.375 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002223/0.5889, allocations: 475.5 kB / 0.499 GB, free: 2.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03243/0.6213, allocations: 14.46 MB / 0.5131 GB, free: 3.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003716/0.6217, allocations: 71.33 kB / 0.5132 GB, free: 3.449 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001794/0.6236, allocations: 215.8 kB / 0.5134 GB, free: 3.238 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005767/0.6293, allocations: 2.836 MB / 0.5162 GB, free: 400 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02427/0.6536, allocations: 13.01 MB / 0.5289 GB, free: 3.355 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2458/0.8994, allocations: 58.28 MB / 0.5858 GB, free: 109.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0145/0.914, allocations: 7.7 MB / 0.5933 GB, free: 104.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004417/0.9184, allocations: 5.009 MB / 0.5982 GB, free: 99.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01459/0.9331, allocations: 12.69 MB / 0.6106 GB, free: 86.78 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.9331, allocations: 71.5 kB / 0.6107 GB, free: 86.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.072e-06/0.9332, allocations: 0 / 0.6107 GB, free: 86.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.89/2.823, allocations: 411.1 MB / 1.012 GB, free: 9.785 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.663e-05/2.823, allocations: 277.6 kB / 1.012 GB, free: 9.461 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1732/2.996, allocations: 5.485 MB / 1.018 GB, free: 133.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001658/2.998, allocations: 111.1 kB / 1.018 GB, free: 133.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002731/3.001, allocations: 4.007 MB / 1.022 GB, free: 132 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002627/3.003, allocations: 2.005 MB / 1.024 GB, free: 130.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004147/3.008, allocations: 2.069 MB / 1.026 GB, free: 129.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.137e-05/3.008, allocations: 310.9 kB / 1.026 GB, free: 129.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01415/3.022, allocations: 10.88 MB / 1.037 GB, free: 125.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01381/3.036, allocations: 14.99 MB / 1.051 GB, free: 115.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02758/3.063, allocations: 27.11 MB / 1.078 GB, free: 96.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001521/3.063, allocations: 40 kB / 1.078 GB, free: 96.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4732/3.537, allocations: 140.4 MB / 1.215 GB, free: 128 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.068e-05/3.537, allocations: 60.28 kB / 1.215 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001254/3.537, allocations: 140.1 kB / 1.215 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07226/3.609, allocations: 34.6 MB / 1.249 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004221/3.613, allocations: 1.486 MB / 1.25 GB, free: 101.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4315/4.045, allocations: 203.2 MB / 1.449 GB, free: 66.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01311/4.058, allocations: 1.707 MB / 1.45 GB, free: 64.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002682/4.061, allocations: 0.531 MB / 1.451 GB, free: 64.45 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.006773/4.068, allocations: 3.076 MB / 1.454 GB, free: 61.49 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002098/4.07, allocations: 0.5873 MB / 1.455 GB, free: 61.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4503/4.52, allocations: 136.4 MB / 1.588 GB, free: 90.13 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.511e-05/4.52, allocations: 63.28 kB / 1.588 GB, free: 90.07 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001363/4.52, allocations: 56 kB / 1.588 GB, free: 90.02 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001092/4.52, allocations: 32.97 kB / 1.588 GB, free: 89.99 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5106/5.031, allocations: 206.2 MB / 1.789 GB, free: 83.23 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.683e-05/5.031, allocations: 4.75 kB / 1.789 GB, free: 83.23 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/5.033, allocations: 326.6 kB / 1.79 GB, free: 82.92 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0653/5.098, allocations: 33.32 MB / 1.822 GB, free: 51.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001435/5.099, allocations: 103.7 kB / 1.822 GB, free: 51.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3694/5.469, allocations: 185.8 MB / 2.004 GB, free: 36.75 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.658e-06/5.469, allocations: 11.84 kB / 2.004 GB, free: 36.75 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4972/5.966, allocations: 152.2 MB / 2.152 GB, free: 52.93 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/5.968, allocations: 0.628 MB / 2.153 GB, free: 52.59 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003223/5.971, allocations: 96 kB / 2.153 GB, free: 52.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009418/5.981, allocations: 1.478 MB / 2.154 GB, free: 51.02 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004227/5.985, allocations: 0.4972 MB / 2.155 GB, free: 50.54 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001431/5.987, allocations: 144.6 kB / 2.155 GB, free: 50.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005636/5.992, allocations: 3.521 MB / 2.159 GB, free: 46.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.6e-07/5.992, allocations: 2 kB / 2.159 GB, free: 46.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01358/6.006, allocations: 3.794 MB / 2.162 GB, free: 43.11 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.538/6.544, allocations: 152.7 MB / 2.311 GB, free: 61.57 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.06029/6.604, allocations: 38.67 MB / 2.349 GB, free: 23.05 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/6.604, allocations: 0 / 2.349 GB, free: 23.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2241/6.828, allocations: 20.5 MB / 2.369 GB, free: 139.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006972/6.835, allocations: 0.8293 MB / 2.37 GB, free: 139.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.082/7.918, allocations: 373.8 MB / 2.735 GB, free: 121.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006004/7.924, allocations: 5.104 MB / 2.74 GB, free: 119.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004468/7.928, allocations: 2.059 MB / 2.742 GB, free: 118.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003031/7.931, allocations: 3.03 MB / 2.745 GB, free: 118.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.163e-06/7.931, allocations: 0 / 2.745 GB, free: 118.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.304/9.236, allocations: 339.6 MB / 3.077 GB, free: 138.6 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001514/9.236, allocations: 241.1 kB / 3.077 GB, free: 138.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.205/17.44, allocations: 0 / 3.077 GB, free: 138.3 MB / 494.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