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.001676/0.001676, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002118/0.002118, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.259, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01298/0.272, allocations: 13.44 MB / 422.2 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009141/0.2812, allocations: 4.873 MB / 427.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00186/0.2831, allocations: 87.75 kB / 427.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007018/0.2902, allocations: 4.171 MB / 431.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005377/0.2956, allocations: 2.182 MB / 433.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002687/0.2983, allocations: 1.1 MB / 434.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008926/0.3072, allocations: 6.063 MB / 440.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006398/0.3137, allocations: 5.289 MB / 446 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003692/0.3174, allocations: 2.162 MB / 448.1 MB, free: 9.977 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004069/0.3215, allocations: 2.871 MB / 451 MB, free: 7.098 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001312/0.3228, allocations: 500 kB / 451.5 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003164/0.326, allocations: 1.619 MB / 453.1 MB, free: 4.988 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002832/0.3289, allocations: 2.595 MB / 455.7 MB, free: 2.387 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004253/0.3331, allocations: 2.945 MB / 458.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01169/0.3448, allocations: 9.656 MB / 468.3 MB, free: 5.734 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.3449, allocations: 0 / 468.3 MB, free: 5.734 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3449, allocations: 0 / 468.3 MB, free: 5.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000321/0.3452, allocations: 0 / 468.3 MB, free: 5.734 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.01588/0.3611, allocations: 6.351 MB / 474.6 MB, free: 15.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.3612, allocations: 8.031 kB / 474.7 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002109/0.3633, allocations: 0.9286 MB / 475.6 MB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03776/0.4011, allocations: 6.059 MB / 481.6 MB, free: 8.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0108/0.412, allocations: 4.259 MB / 485.9 MB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/0.4123, allocations: 312.1 kB / 486.2 MB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001506/0.4138, allocations: 435.7 kB / 486.6 MB, free: 3.227 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02406/0.4378, allocations: 12.32 MB / 498.9 MB, free: 6.168 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001609/0.438, allocations: 67.56 kB / 499 MB, free: 6.102 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005706/0.4386, allocations: 187.9 kB / 499.2 MB, free: 5.918 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003216/0.4418, allocations: 2.031 MB / 0.4895 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02303/0.4649, allocations: 10.36 MB / 0.4996 GB, free: 9.508 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3112/0.7762, allocations: 43.99 MB / 0.5426 GB, free: 113.1 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01191/0.7882, allocations: 4.799 MB / 0.5472 GB, free: 112.4 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002635/0.7908, allocations: 1.979 MB / 0.5492 GB, free: 112.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/0.8014, allocations: 7.095 MB / 0.5561 GB, free: 109.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.8014, allocations: 51.56 kB / 0.5562 GB, free: 109.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 4.849e-06/0.8014, allocations: 3.062 kB / 0.5562 GB, free: 109.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.05895/0.8604, allocations: 19.26 MB / 0.575 GB, free: 96.35 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.381e-05/0.8605, allocations: 205.9 kB / 0.5752 GB, free: 96.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005193/0.8657, allocations: 4.492 MB / 0.5795 GB, free: 91.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003699/0.8661, allocations: 61.53 kB / 0.5796 GB, free: 91.54 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001583/0.8677, allocations: 3.699 MB / 0.5832 GB, free: 87.85 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008142/0.8685, allocations: 0.8659 MB / 0.5841 GB, free: 86.99 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001379/0.8699, allocations: 1.282 MB / 0.5853 GB, free: 85.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.899e-05/0.87, allocations: 305.1 kB / 0.5856 GB, free: 85.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002629/0.8726, allocations: 2.23 MB / 0.5878 GB, free: 83.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00395/0.8766, allocations: 5.981 MB / 0.5936 GB, free: 75.39 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007647/0.8842, allocations: 8.918 MB / 0.6023 GB, free: 64.72 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.943e-05/0.8844, allocations: 36 kB / 0.6024 GB, free: 64.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.02178/0.9061, allocations: 9.072 MB / 0.6112 GB, free: 55.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000233/0.9064, allocations: 64 kB / 0.6113 GB, free: 55.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002733/0.9067, allocations: 128 kB / 0.6114 GB, free: 55.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005577/0.9123, allocations: 1.207 MB / 0.6126 GB, free: 54.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006603/0.919, allocations: 1.411 MB / 0.614 GB, free: 52.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00942/0.9284, allocations: 8.02 MB / 0.6218 GB, free: 44.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004655/0.9331, allocations: 339.7 kB / 0.6221 GB, free: 44.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009424/0.9341, allocations: 380 kB / 0.6225 GB, free: 43.93 MB / 462.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.003576/0.9377, allocations: 2.487 MB / 0.6249 GB, free: 41.43 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008268/0.9385, allocations: 429.1 kB / 0.6253 GB, free: 41.01 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007112/0.9456, allocations: 3.888 MB / 0.6291 GB, free: 37.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-05/0.9457, allocations: 24 kB / 0.6291 GB, free: 37.09 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/0.9457, allocations: 8 kB / 0.6292 GB, free: 37.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.049e-05/0.9457, allocations: 15.47 kB / 0.6292 GB, free: 37.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01941/0.9651, allocations: 9.959 MB / 0.6389 GB, free: 27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-05/0.9652, allocations: 8 kB / 0.6389 GB, free: 27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/0.9667, allocations: 327.5 kB / 0.6392 GB, free: 26.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003029/0.9697, allocations: 0.9806 MB / 0.6402 GB, free: 25.69 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002631/0.97, allocations: 43.98 kB / 0.6402 GB, free: 25.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007957/0.978, allocations: 6.695 MB / 0.6468 GB, free: 18.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.978, allocations: 15.3 kB / 0.6468 GB, free: 18.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01104/0.9891, allocations: 6.625 MB / 0.6532 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/0.9903, allocations: 478 kB / 0.6537 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009348/0.9912, allocations: 51.3 kB / 0.6537 GB, free: 11.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002197/0.9934, allocations: 111.9 kB / 0.6538 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003933/0.9938, allocations: 142.8 kB / 0.654 GB, free: 11.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001805/0.994, allocations: 60 kB / 0.654 GB, free: 11.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004857/0.9989, allocations: 2.828 MB / 0.6568 GB, free: 8.426 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.9989, allocations: 0 / 0.6568 GB, free: 8.426 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005516/1.004, allocations: 1.16 MB / 0.6579 GB, free: 7.266 MB / 462.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.01084/1.015, allocations: 7.347 MB / 0.6651 GB, free: 15.83 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01463/1.03, allocations: 5.541 MB / 0.6705 GB, free: 10.31 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/1.03, allocations: 4.188 kB / 0.6705 GB, free: 10.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005201/1.035, allocations: 1.848 MB / 0.6723 GB, free: 8.441 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007337/1.043, allocations: 0.5653 MB / 0.6729 GB, free: 7.879 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.135/1.178, allocations: 51.49 MB / 0.7232 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006555/1.184, allocations: 3.875 MB / 0.7269 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005153/1.189, allocations: 1.934 MB / 0.7288 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003656/1.193, allocations: 2.288 MB / 0.7311 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/1.193, allocations: 4 kB / 0.7311 GB, free: 6.297 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3758/1.569, allocations: 83.69 MB / 0.8128 GB, free: 129.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.54/29.11, allocations: 13.7 kB / 0.8128 GB, free: 129.1 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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