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.001886/0.001887, allocations: 115.4 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002137/0.002137, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 64.7 kB / 306.6 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08957/0.09091, allocations: 50.53 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2308/0.3218, allocations: 55.08 MB / 412.2 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02672/0.3485, allocations: 11.67 MB / 423.8 MB, free: 8.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01522/0.3638, allocations: 243.4 kB / 424.1 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007516/0.3714, allocations: 4.039 MB / 428.1 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005974/0.3774, allocations: 1.97 MB / 430.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002874/0.3803, allocations: 1.03 MB / 431.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008247/0.3885, allocations: 6.447 MB / 437.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006882/0.3954, allocations: 5.576 MB / 443.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003469/0.3989, allocations: 2.193 MB / 445.3 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005305/0.4043, allocations: 3.159 MB / 448.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001825/0.4061, allocations: 0.4922 MB / 449 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003937/0.4101, allocations: 1.635 MB / 450.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004978/0.4151, allocations: 2.599 MB / 453.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006216/0.4213, allocations: 2.957 MB / 456.2 MB, free: 8.219 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0103/0.4316, allocations: 9.444 MB / 465.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.4317, allocations: 4 kB / 465.6 MB, free: 14.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4317, allocations: 0 / 465.6 MB, free: 14.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002628/0.4319, allocations: 0 / 465.6 MB, free: 14.74 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.01419/0.4461, allocations: 6.181 MB / 471.8 MB, free: 8.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.4462, allocations: 8.031 kB / 471.8 MB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00258/0.4488, allocations: 0.9402 MB / 472.7 MB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03543/0.4842, allocations: 6.016 MB / 478.8 MB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009688/0.494, allocations: 4.171 MB / 482.9 MB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002939/0.4943, allocations: 308.3 kB / 483.2 MB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00161/0.4959, allocations: 443.6 kB / 483.7 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02636/0.5223, allocations: 12.32 MB / 496 MB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002473/0.5226, allocations: 59.53 kB / 496 MB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00133/0.524, allocations: 187.9 kB / 496.2 MB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003263/0.5272, allocations: 2.039 MB / 498.3 MB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0241/0.5513, allocations: 10.36 MB / 0.4967 GB, free: 2.801 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2513/0.8027, allocations: 44.12 MB / 0.5398 GB, free: 117.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01282/0.8155, allocations: 4.809 MB / 0.5445 GB, free: 117.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002945/0.8185, allocations: 1.969 MB / 0.5464 GB, free: 117 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01362/0.8321, allocations: 7.082 MB / 0.5533 GB, free: 113.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.383e-05/0.8322, allocations: 53.53 kB / 0.5534 GB, free: 113.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.019e-06/0.8322, allocations: 2.719 kB / 0.5534 GB, free: 113.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06242/0.8947, allocations: 18.97 MB / 0.5719 GB, free: 106.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.944e-05/0.8948, allocations: 206.6 kB / 0.5721 GB, free: 106 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005051/0.8998, allocations: 4.477 MB / 0.5765 GB, free: 103.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002897/0.9002, allocations: 61.23 kB / 0.5765 GB, free: 103.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001383/0.9015, allocations: 3.566 MB / 0.58 GB, free: 99.61 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005665/0.9021, allocations: 0.8304 MB / 0.5808 GB, free: 98.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001219/0.9033, allocations: 1.273 MB / 0.5821 GB, free: 97.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.4e-05/0.9034, allocations: 305.1 kB / 0.5824 GB, free: 97.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002495/0.9059, allocations: 2.234 MB / 0.5845 GB, free: 94.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003581/0.9095, allocations: 5.978 MB / 0.5904 GB, free: 87.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007285/0.9168, allocations: 8.925 MB / 0.5991 GB, free: 76.57 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.254e-05/0.9169, allocations: 36 kB / 0.5991 GB, free: 76.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01417/0.9311, allocations: 9.051 MB / 0.608 GB, free: 67.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/0.9312, allocations: 62.97 kB / 0.608 GB, free: 67.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001616/0.9314, allocations: 132.2 kB / 0.6082 GB, free: 67.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003354/0.9348, allocations: 1.206 MB / 0.6093 GB, free: 66.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003861/0.9387, allocations: 1.417 MB / 0.6107 GB, free: 64.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00974/0.9484, allocations: 8.046 MB / 0.6186 GB, free: 56.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004963/0.9534, allocations: 347.5 kB / 0.6189 GB, free: 56.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009534/0.9544, allocations: 372 kB / 0.6193 GB, free: 55.78 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.004413/0.9588, allocations: 2.486 MB / 0.6217 GB, free: 53.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/0.9599, allocations: 406.7 kB / 0.6221 GB, free: 52.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007574/0.9675, allocations: 3.896 MB / 0.6259 GB, free: 48.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.365e-05/0.9675, allocations: 24 kB / 0.6259 GB, free: 48.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-05/0.9676, allocations: 8 kB / 0.6259 GB, free: 48.95 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-05/0.9676, allocations: 15.89 kB / 0.6259 GB, free: 48.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02162/0.9892, allocations: 10.19 MB / 0.6359 GB, free: 38.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.729e-05/0.9893, allocations: 4 kB / 0.6359 GB, free: 38.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001575/0.9909, allocations: 351.5 kB / 0.6362 GB, free: 38.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003182/0.9941, allocations: 0.9837 MB / 0.6372 GB, free: 37.29 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003317/0.9945, allocations: 40 kB / 0.6372 GB, free: 37.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008361/1.003, allocations: 6.672 MB / 0.6437 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/1.003, allocations: 18.38 kB / 0.6437 GB, free: 30.42 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/1.013, allocations: 6.614 MB / 0.6502 GB, free: 23.72 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/1.015, allocations: 451.7 kB / 0.6506 GB, free: 23.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001064/1.016, allocations: 47.83 kB / 0.6507 GB, free: 23.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002233/1.018, allocations: 111.8 kB / 0.6508 GB, free: 23.11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004255/1.018, allocations: 144.5 kB / 0.6509 GB, free: 22.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001809/1.019, allocations: 64 kB / 0.651 GB, free: 22.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00478/1.023, allocations: 2.824 MB / 0.6537 GB, free: 20.08 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.023, allocations: 0 / 0.6537 GB, free: 20.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00613/1.03, allocations: 1.156 MB / 0.6549 GB, free: 18.93 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.01109/1.041, allocations: 7.338 MB / 0.662 GB, free: 11.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01042/1.051, allocations: 6.635 MB / 0.6685 GB, free: 4.918 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/1.051, allocations: 0 / 0.6685 GB, free: 4.918 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002652/1.054, allocations: 1.848 MB / 0.6703 GB, free: 3.059 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004538/1.058, allocations: 0.5638 MB / 0.6709 GB, free: 2.504 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3082/1.367, allocations: 61.74 MB / 0.7312 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005107/1.372, allocations: 3.871 MB / 0.735 GB, free: 163.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004701/1.376, allocations: 1.926 MB / 0.7368 GB, free: 163.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002676/1.379, allocations: 2.288 MB / 0.7391 GB, free: 161.3 MB / 494.1 MB Notification: Performance of SimCode: time 2.224e-06/1.379, allocations: 2.531 kB / 0.7391 GB, free: 161.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1124/1.492, allocations: 87.62 MB / 0.8246 GB, free: 85.29 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/1.492, allocations: 243.8 kB / 0.8249 GB, free: 85.04 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.906/5.398, allocations: 0 / 0.8249 GB, free: 85.04 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