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.001446/0.001446, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00159/0.00159, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3097, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01802/0.3278, allocations: 13.46 MB / 422.2 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01182/0.3396, allocations: 4.877 MB / 427.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003/0.3427, allocations: 87.75 kB / 427.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008934/0.3517, allocations: 4.163 MB / 431.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006426/0.3582, allocations: 2.12 MB / 433.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00313/0.3613, allocations: 1.103 MB / 434.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009836/0.3712, allocations: 6.059 MB / 440.6 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008414/0.3796, allocations: 5.301 MB / 445.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004628/0.3843, allocations: 2.15 MB / 448.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005188/0.3895, allocations: 2.863 MB / 450.9 MB, free: 7.199 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001932/0.3915, allocations: 0.4961 MB / 451.4 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004367/0.3959, allocations: 1.615 MB / 453 MB, free: 5.086 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004489/0.4004, allocations: 2.549 MB / 455.6 MB, free: 2.531 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006551/0.407, allocations: 2.941 MB / 458.5 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01513/0.4221, allocations: 9.66 MB / 468.2 MB, free: 5.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4222, allocations: 0 / 468.2 MB, free: 5.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4222, allocations: 0 / 468.2 MB, free: 5.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003878/0.4226, allocations: 0 / 468.2 MB, free: 5.879 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.01893/0.4415, allocations: 6.355 MB / 474.5 MB, free: 15.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.4416, allocations: 12.03 kB / 474.6 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003028/0.4446, allocations: 0.9286 MB / 475.5 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0376/0.4823, allocations: 6.055 MB / 481.5 MB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01168/0.494, allocations: 4.255 MB / 485.8 MB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004593/0.4945, allocations: 308.1 kB / 486.1 MB, free: 3.801 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002751/0.4973, allocations: 447.6 kB / 486.5 MB, free: 3.363 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0262/0.5235, allocations: 12.32 MB / 498.9 MB, free: 6.305 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001856/0.5238, allocations: 51.58 kB / 498.9 MB, free: 6.254 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00069/0.5245, allocations: 187.9 kB / 499.1 MB, free: 6.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003463/0.5279, allocations: 2.035 MB / 0.4894 GB, free: 4.031 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02281/0.5508, allocations: 10.36 MB / 0.4995 GB, free: 9.656 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3169/0.8677, allocations: 43.99 MB / 0.5425 GB, free: 112 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01138/0.8791, allocations: 4.801 MB / 0.5471 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002286/0.8814, allocations: 1.975 MB / 0.5491 GB, free: 111.2 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00985/0.8913, allocations: 7.094 MB / 0.556 GB, free: 108 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/0.8914, allocations: 50.03 kB / 0.556 GB, free: 108 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 7.574e-06/0.8914, allocations: 3.75 kB / 0.556 GB, free: 108 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.06206/0.9535, allocations: 19.25 MB / 0.5748 GB, free: 95.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.695e-05/0.9536, allocations: 213.8 kB / 0.5751 GB, free: 95.05 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005453/0.9591, allocations: 4.49 MB / 0.5794 GB, free: 90.62 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004247/0.9595, allocations: 61.7 kB / 0.5795 GB, free: 90.55 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001698/0.9612, allocations: 3.692 MB / 0.5831 GB, free: 87.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008041/0.9621, allocations: 0.8772 MB / 0.584 GB, free: 86.29 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001356/0.9634, allocations: 1.278 MB / 0.5852 GB, free: 85 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.919e-05/0.9635, allocations: 301.1 kB / 0.5855 GB, free: 84.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002624/0.9661, allocations: 2.238 MB / 0.5877 GB, free: 82.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003859/0.97, allocations: 5.978 MB / 0.5935 GB, free: 74.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007636/0.9776, allocations: 8.918 MB / 0.6022 GB, free: 64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.472e-05/0.9778, allocations: 40.94 kB / 0.6023 GB, free: 63.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01509/0.9929, allocations: 9.072 MB / 0.6111 GB, free: 54.89 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001521/0.9931, allocations: 60 kB / 0.6112 GB, free: 54.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001902/0.9933, allocations: 135.8 kB / 0.6113 GB, free: 54.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003533/0.9968, allocations: 1.205 MB / 0.6125 GB, free: 53.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004279/1.001, allocations: 1.419 MB / 0.6139 GB, free: 52.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009793/1.011, allocations: 8.006 MB / 0.6217 GB, free: 43.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00504/1.016, allocations: 347.6 kB / 0.622 GB, free: 43.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/1.017, allocations: 380.6 kB / 0.6224 GB, free: 43.22 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.004654/1.022, allocations: 2.478 MB / 0.6248 GB, free: 40.73 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009901/1.023, allocations: 429.1 kB / 0.6252 GB, free: 40.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00744/1.03, allocations: 3.896 MB / 0.629 GB, free: 36.39 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.668e-05/1.03, allocations: 24 kB / 0.629 GB, free: 36.37 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.965e-05/1.03, allocations: 8 kB / 0.6291 GB, free: 36.36 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.202e-05/1.03, allocations: 11.97 kB / 0.6291 GB, free: 36.35 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01978/1.05, allocations: 9.962 MB / 0.6388 GB, free: 26.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.781e-05/1.05, allocations: 4 kB / 0.6388 GB, free: 26.28 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/1.052, allocations: 331.5 kB / 0.6391 GB, free: 25.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003153/1.055, allocations: 0.9844 MB / 0.6401 GB, free: 24.97 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002694/1.055, allocations: 43.98 kB / 0.6401 GB, free: 24.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00817/1.063, allocations: 6.695 MB / 0.6467 GB, free: 18.09 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/1.063, allocations: 7.938 kB / 0.6467 GB, free: 18.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009935/1.073, allocations: 6.633 MB / 0.6531 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/1.075, allocations: 474 kB / 0.6536 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001289/1.076, allocations: 40 kB / 0.6536 GB, free: 10.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002518/1.079, allocations: 111.9 kB / 0.6537 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004541/1.079, allocations: 148.9 kB / 0.6539 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001899/1.079, allocations: 63.52 kB / 0.6539 GB, free: 10.54 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005073/1.085, allocations: 2.824 MB / 0.6567 GB, free: 7.711 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/1.085, allocations: 0 / 0.6567 GB, free: 7.711 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005971/1.091, allocations: 1.156 MB / 0.6578 GB, free: 6.555 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.01156/1.102, allocations: 7.353 MB / 0.665 GB, free: 15.11 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01168/1.114, allocations: 5.532 MB / 0.6704 GB, free: 9.598 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/1.114, allocations: 0.9375 kB / 0.6704 GB, free: 9.598 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003502/1.117, allocations: 1.847 MB / 0.6722 GB, free: 7.734 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004816/1.122, allocations: 0.5619 MB / 0.6728 GB, free: 7.172 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1034/1.226, allocations: 51.5 MB / 0.7231 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007659/1.233, allocations: 3.867 MB / 0.7268 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005713/1.239, allocations: 1.938 MB / 0.7287 GB, free: 7.875 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004291/1.244, allocations: 2.284 MB / 0.731 GB, free: 5.59 MB / 0.5294 GB Notification: Performance of SimCode: time 7.71e-07/1.244, allocations: 0 / 0.731 GB, free: 5.59 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3722/1.616, allocations: 83.7 MB / 0.8127 GB, free: 124.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.49/29.11, allocations: 4.688 kB / 0.8127 GB, free: 124.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.1.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