Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001062, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001185/0.001185, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 60.84 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.09124, allocations: 50.52 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.199/0.2903, allocations: 55.06 MB / 411.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03087/0.3212, allocations: 11.79 MB / 423.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01433/0.3356, allocations: 247.4 kB / 424 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007602/0.3432, allocations: 4.183 MB / 428.2 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005645/0.3489, allocations: 1.985 MB / 430.2 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002365/0.3513, allocations: 1.014 MB / 431.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009957/0.3613, allocations: 8.764 MB / 439.9 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005612/0.3669, allocations: 5.213 MB / 445.1 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002659/0.3696, allocations: 1.9 MB / 447 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003828/0.3734, allocations: 3.034 MB / 450.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007667/0.3742, allocations: 340 kB / 450.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002755/0.377, allocations: 1.541 MB / 451.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002125/0.3791, allocations: 2.443 MB / 454.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002595/0.3817, allocations: 2.781 MB / 457.2 MB, free: 7.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009171/0.3909, allocations: 9.261 MB / 466.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.3909, allocations: 0 / 466.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3909, allocations: 4 kB / 466.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002415/0.3912, allocations: 0 / 466.4 MB, free: 13.95 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01289/0.4041, allocations: 6.183 MB / 472.6 MB, free: 7.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.4041, allocations: 12.03 kB / 472.6 MB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0012/0.4054, allocations: 0.9286 MB / 473.6 MB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03319/0.4386, allocations: 6.024 MB / 479.6 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008361/0.4469, allocations: 4.167 MB / 483.8 MB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.4472, allocations: 316.2 kB / 484.1 MB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008448/0.448, allocations: 435.7 kB / 484.5 MB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02005/0.4681, allocations: 12.32 MB / 496.8 MB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001248/0.4682, allocations: 47.58 kB / 496.9 MB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004421/0.4687, allocations: 191.9 kB / 497 MB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002862/0.4716, allocations: 2.039 MB / 499.1 MB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01937/0.4909, allocations: 10.36 MB / 0.4975 GB, free: 2.012 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2147/0.7057, allocations: 44.12 MB / 0.5406 GB, free: 118.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01233/0.7181, allocations: 4.822 MB / 0.5453 GB, free: 117.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002409/0.7205, allocations: 1.967 MB / 0.5472 GB, free: 117.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009787/0.7303, allocations: 7.087 MB / 0.5541 GB, free: 113.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.7304, allocations: 53.25 kB / 0.5542 GB, free: 113.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.22e-06/0.7304, allocations: 0 / 0.5542 GB, free: 113.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05408/0.7845, allocations: 18.97 MB / 0.5727 GB, free: 106.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.7846, allocations: 207.6 kB / 0.5729 GB, free: 106.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00458/0.7892, allocations: 4.476 MB / 0.5773 GB, free: 102.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002164/0.7894, allocations: 57.7 kB / 0.5773 GB, free: 102.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.7906, allocations: 3.568 MB / 0.5808 GB, free: 99.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004529/0.7911, allocations: 0.8265 MB / 0.5816 GB, free: 98.41 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001097/0.7922, allocations: 1.27 MB / 0.5829 GB, free: 97.13 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.309e-05/0.7922, allocations: 301.1 kB / 0.5832 GB, free: 96.83 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002342/0.7946, allocations: 2.23 MB / 0.5853 GB, free: 94.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003286/0.7979, allocations: 5.987 MB / 0.5912 GB, free: 86.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006221/0.8041, allocations: 8.92 MB / 0.5999 GB, free: 76.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.748e-05/0.8041, allocations: 36 kB / 0.5999 GB, free: 76.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.012/0.8161, allocations: 9.046 MB / 0.6088 GB, free: 67.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.978e-05/0.8162, allocations: 71.88 kB / 0.6088 GB, free: 67.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.633e-05/0.8163, allocations: 128 kB / 0.609 GB, free: 66.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003276/0.8196, allocations: 1.207 MB / 0.6101 GB, free: 65.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003582/0.8232, allocations: 1.415 MB / 0.6115 GB, free: 64.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008217/0.8314, allocations: 7.526 MB / 0.6189 GB, free: 56.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/0.8355, allocations: 343.5 kB / 0.6192 GB, free: 56.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005286/0.836, allocations: 376 kB / 0.6195 GB, free: 55.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002787/0.8388, allocations: 2.49 MB / 0.622 GB, free: 53.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005611/0.8394, allocations: 406.7 kB / 0.6224 GB, free: 53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006321/0.8457, allocations: 3.888 MB / 0.6262 GB, free: 49.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.206e-05/0.8457, allocations: 27.75 kB / 0.6262 GB, free: 49.08 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.8458, allocations: 8 kB / 0.6262 GB, free: 49.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.8458, allocations: 15.95 kB / 0.6262 GB, free: 49.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01465/0.8604, allocations: 10.19 MB / 0.6362 GB, free: 38.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/0.8605, allocations: 7.5 kB / 0.6362 GB, free: 38.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/0.8619, allocations: 355.4 kB / 0.6365 GB, free: 38.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002955/0.8649, allocations: 0.989 MB / 0.6375 GB, free: 37.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/0.865, allocations: 40 kB / 0.6375 GB, free: 37.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007172/0.8722, allocations: 6.229 MB / 0.6436 GB, free: 31.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.8722, allocations: 7.938 kB / 0.6436 GB, free: 31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009026/0.8813, allocations: 6.62 MB / 0.6501 GB, free: 24.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.8825, allocations: 451.7 kB / 0.6505 GB, free: 23.83 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005765/0.8831, allocations: 43.94 kB / 0.6505 GB, free: 23.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/0.8846, allocations: 117.1 kB / 0.6507 GB, free: 23.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004076/0.8851, allocations: 141.1 kB / 0.6508 GB, free: 23.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/0.8852, allocations: 60 kB / 0.6508 GB, free: 23.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003703/0.8889, allocations: 2.828 MB / 0.6536 GB, free: 20.65 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8889, allocations: 0 / 0.6536 GB, free: 20.65 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004575/0.8935, allocations: 1.158 MB / 0.6547 GB, free: 19.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009125/0.9026, allocations: 7.328 MB / 0.6619 GB, free: 12.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007493/0.9102, allocations: 5.517 MB / 0.6673 GB, free: 6.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/0.9102, allocations: 0.8125 kB / 0.6673 GB, free: 6.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002551/0.9128, allocations: 1.856 MB / 0.6691 GB, free: 4.727 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003231/0.916, allocations: 0.5331 MB / 0.6696 GB, free: 4.195 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2575/1.173, allocations: 61.76 MB / 0.7299 GB, free: 166.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004325/1.178, allocations: 3.873 MB / 0.7337 GB, free: 165 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004373/1.182, allocations: 1.933 MB / 0.7356 GB, free: 165 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002236/1.184, allocations: 2.283 MB / 0.7378 GB, free: 163.1 MB / 494.1 MB Notification: Performance of SimCode: time 8.12e-07/1.184, allocations: 3.906 kB / 0.7378 GB, free: 163.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1031/1.288, allocations: 85.93 MB / 0.8217 GB, free: 88.64 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/1.288, allocations: 245.6 kB / 0.822 GB, free: 88.38 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.683/4.971, allocations: 0 / 0.822 GB, free: 88.38 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches