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.001561/0.001561, allocations: 100.2 kB / 16.51 MB, free: 6.652 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.001753/0.001753, allocations: 195.1 kB / 17.42 MB, free: 6.062 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.315/1.315, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009451/0.0009451, allocations: 46.02 kB / 300.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0773/0.07826, allocations: 49.45 MB / 349.5 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2026/0.2809, allocations: 75.33 MB / 424.8 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03253/0.3135, allocations: 14.95 MB / 439.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0143/0.3278, allocations: 335.2 kB / 440.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008091/0.3359, allocations: 4.432 MB / 444.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006642/0.3427, allocations: 2.376 MB / 446.9 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00233/0.345, allocations: 1.057 MB / 448 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01192/0.357, allocations: 11.19 MB / 459.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00664/0.3636, allocations: 5.209 MB / 464.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003945/0.3676, allocations: 2.188 MB / 466.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005162/0.3728, allocations: 3.587 MB / 470.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001555/0.3743, allocations: 356 kB / 470.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003291/0.3776, allocations: 1.408 MB / 471.9 MB, free: 10.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003037/0.3807, allocations: 2.84 MB / 474.7 MB, free: 7.316 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004962/0.3857, allocations: 3.274 MB / 478 MB, free: 4.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009169/0.3948, allocations: 10.12 MB / 488.1 MB, free: 9.867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3949, allocations: 0 / 488.1 MB, free: 9.867 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3949, allocations: 0 / 488.1 MB, free: 9.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001439/0.395, allocations: 0 / 488.1 MB, free: 9.867 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.01372/0.4087, allocations: 7.878 MB / 496 MB, free: 1.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.4088, allocations: 16.02 kB / 496 MB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001288/0.4101, allocations: 1.078 MB / 497.1 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04868/0.4588, allocations: 8.405 MB / 0.4937 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01184/0.4707, allocations: 5.723 MB / 0.4993 GB, free: 2.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002639/0.471, allocations: 341.1 kB / 0.4996 GB, free: 2.234 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001016/0.472, allocations: 475.5 kB / 0.5 GB, free: 1.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02231/0.4943, allocations: 14.46 MB / 0.5142 GB, free: 2.375 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001598/0.4945, allocations: 71.33 kB / 0.5142 GB, free: 2.305 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005202/0.495, allocations: 219.8 kB / 0.5144 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004982/0.5, allocations: 2.84 MB / 0.5172 GB, free: 15.24 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02161/0.5216, allocations: 13 MB / 0.5299 GB, free: 2.211 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2194/0.7411, allocations: 58.28 MB / 0.5868 GB, free: 108.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01396/0.7551, allocations: 7.694 MB / 0.5943 GB, free: 103.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004063/0.7591, allocations: 5.018 MB / 0.5992 GB, free: 98.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01313/0.7723, allocations: 12.69 MB / 0.6116 GB, free: 85.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.7723, allocations: 72.69 kB / 0.6117 GB, free: 85.48 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 4.348e-06/0.7723, allocations: 0 / 0.6117 GB, free: 85.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.755/2.528, allocations: 411.1 MB / 1.013 GB, free: 8.477 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.109e-05/2.528, allocations: 273.6 kB / 1.013 GB, free: 8.156 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1745/2.702, allocations: 5.489 MB / 1.019 GB, free: 134 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001635/2.704, allocations: 112.1 kB / 1.019 GB, free: 134 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002677/2.707, allocations: 4.013 MB / 1.023 GB, free: 132 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002857/2.709, allocations: 2.006 MB / 1.025 GB, free: 130.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004983/2.714, allocations: 2.066 MB / 1.027 GB, free: 129.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.186e-05/2.714, allocations: 304.9 kB / 1.027 GB, free: 129.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01618/2.731, allocations: 10.88 MB / 1.038 GB, free: 125.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01436/2.745, allocations: 15 MB / 1.052 GB, free: 115.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02745/2.773, allocations: 27.11 MB / 1.079 GB, free: 95.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/2.773, allocations: 40 kB / 1.079 GB, free: 95.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4755/3.248, allocations: 140.4 MB / 1.216 GB, free: 127.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.713e-05/3.248, allocations: 65 kB / 1.216 GB, free: 127.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001296/3.248, allocations: 136.4 kB / 1.216 GB, free: 127.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07448/3.323, allocations: 34.57 MB / 1.25 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004131/3.327, allocations: 1.48 MB / 1.251 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4176/3.745, allocations: 190.2 MB / 1.437 GB, free: 76.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01089/3.756, allocations: 1.709 MB / 1.439 GB, free: 75.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001151/3.757, allocations: 0.5214 MB / 1.439 GB, free: 74.95 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.004304/3.761, allocations: 3.089 MB / 1.442 GB, free: 72.37 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001417/3.763, allocations: 0.5818 MB / 1.443 GB, free: 72.09 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4371/4.2, allocations: 136.4 MB / 1.576 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6e-05/4.2, allocations: 56 kB / 1.576 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001219/4.2, allocations: 60 kB / 1.576 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.932e-05/4.2, allocations: 23.91 kB / 1.576 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4838/4.684, allocations: 206.2 MB / 1.778 GB, free: 94.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.925e-05/4.684, allocations: 4 kB / 1.778 GB, free: 94.42 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/4.685, allocations: 333.8 kB / 1.778 GB, free: 94.11 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06738/4.753, allocations: 33.7 MB / 1.811 GB, free: 63.01 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001339/4.754, allocations: 96 kB / 1.811 GB, free: 62.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.371/5.125, allocations: 173 MB / 1.98 GB, free: 60.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/5.125, allocations: 16.09 kB / 1.98 GB, free: 60.89 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4823/5.607, allocations: 152.2 MB / 2.129 GB, free: 77.24 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001956/5.609, allocations: 0.6234 MB / 2.129 GB, free: 76.91 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001866/5.611, allocations: 103.1 kB / 2.129 GB, free: 76.81 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007448/5.619, allocations: 1.478 MB / 2.131 GB, free: 75.33 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003837/5.623, allocations: 0.4941 MB / 2.131 GB, free: 74.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007938/5.623, allocations: 136 kB / 2.131 GB, free: 74.71 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004732/5.628, allocations: 3.521 MB / 2.135 GB, free: 71.21 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/5.628, allocations: 0 / 2.135 GB, free: 71.21 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01253/5.641, allocations: 3.794 MB / 2.138 GB, free: 67.43 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.5464/6.187, allocations: 152.7 MB / 2.288 GB, free: 84.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05283/6.24, allocations: 33.52 MB / 2.32 GB, free: 52.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/6.24, allocations: 3.812 kB / 2.32 GB, free: 52.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03652/6.277, allocations: 20.47 MB / 2.34 GB, free: 32.31 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006978/6.284, allocations: 0.7876 MB / 2.341 GB, free: 31.55 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.283/7.567, allocations: 373.8 MB / 2.706 GB, free: 129 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008251/7.575, allocations: 5.104 MB / 2.711 GB, free: 128.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005156/7.58, allocations: 2.063 MB / 2.713 GB, free: 128.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003601/7.584, allocations: 3.025 MB / 2.716 GB, free: 128.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.373e-06/7.584, allocations: 7.781 kB / 2.716 GB, free: 128.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.723/8.307, allocations: 328.7 MB / 3.037 GB, free: 113.3 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/8.307, allocations: 234.5 kB / 3.037 GB, free: 113 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.556/15.86, allocations: 1.859 kB / 3.037 GB, free: 113 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