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.001362/0.001363, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001491/0.001491, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 64.23 kB / 307.1 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1118, allocations: 50.52 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01624/0.1281, allocations: 13.46 MB / 371 MB, free: 460 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1825/0.3106, allocations: 4.87 MB / 375.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002294/0.313, allocations: 86.12 kB / 376 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007671/0.3207, allocations: 4.172 MB / 380.2 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005793/0.3265, allocations: 2.114 MB / 382.3 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002694/0.3292, allocations: 1.103 MB / 383.4 MB, free: 6.949 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007801/0.3371, allocations: 6.043 MB / 389.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006241/0.3433, allocations: 5.321 MB / 394.7 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0034/0.3468, allocations: 2.149 MB / 396.9 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003894/0.3507, allocations: 2.862 MB / 399.8 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001482/0.3522, allocations: 0.4913 MB / 400.3 MB, free: 15.03 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003771/0.356, allocations: 1.614 MB / 401.9 MB, free: 13.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003177/0.3592, allocations: 2.561 MB / 404.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004662/0.3638, allocations: 2.943 MB / 407.4 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01033/0.3742, allocations: 9.379 MB / 416.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3742, allocations: 8 kB / 416.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3742, allocations: 0 / 416.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003213/0.3746, allocations: 0 / 416.8 MB, free: 14.79 MB / 334.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.01656/0.3911, allocations: 6.179 MB / 422.9 MB, free: 8.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.3912, allocations: 12.03 kB / 422.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00262/0.3938, allocations: 0.9368 MB / 423.9 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04001/0.4339, allocations: 6.019 MB / 429.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009615/0.4435, allocations: 4.174 MB / 434.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003861/0.4439, allocations: 308.3 kB / 434.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001954/0.4459, allocations: 441.7 kB / 434.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0251/0.471, allocations: 12.32 MB / 447.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001409/0.4712, allocations: 47.59 kB / 447.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005178/0.4717, allocations: 189.3 kB / 447.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00312/0.4749, allocations: 2.042 MB / 449.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02117/0.4961, allocations: 10.36 MB / 459.8 MB, free: 3.262 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05427/0.5504, allocations: 44.13 MB / 0.4921 GB, free: 6.102 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01298/0.5634, allocations: 4.808 MB / 0.4968 GB, free: 1.148 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002954/0.5664, allocations: 1.968 MB / 0.4987 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/0.5788, allocations: 7.082 MB / 0.5056 GB, free: 7.836 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.887e-05/0.5789, allocations: 47.56 kB / 0.5057 GB, free: 7.777 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 6.251e-06/0.5789, allocations: 0 / 0.5057 GB, free: 7.777 MB / 430.1 MB Notification: Performance of matching and sorting (n=223): time 0.06538/0.6443, allocations: 18.98 MB / 0.5242 GB, free: 4.758 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.6444, allocations: 209.9 kB / 0.5244 GB, free: 4.508 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1728/0.8172, allocations: 4.484 MB / 0.5288 GB, free: 8 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004683/0.8177, allocations: 54.52 kB / 0.5288 GB, free: 141.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002884/0.8206, allocations: 3.552 MB / 0.5323 GB, free: 139.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001103/0.8218, allocations: 0.8406 MB / 0.5331 GB, free: 139.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002066/0.8238, allocations: 1.267 MB / 0.5344 GB, free: 138.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.208e-05/0.8239, allocations: 302.7 kB / 0.5346 GB, free: 138.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00346/0.8274, allocations: 2.231 MB / 0.5368 GB, free: 137.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005018/0.8324, allocations: 5.985 MB / 0.5427 GB, free: 132 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009269/0.8417, allocations: 8.918 MB / 0.5514 GB, free: 124.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000164/0.8419, allocations: 37.84 kB / 0.5514 GB, free: 124.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.0178/0.8597, allocations: 9.048 MB / 0.5602 GB, free: 121.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.935e-05/0.8598, allocations: 60.72 kB / 0.5603 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/0.86, allocations: 138.2 kB / 0.5604 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003461/0.8634, allocations: 1.211 MB / 0.5616 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004168/0.8676, allocations: 1.414 MB / 0.563 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009611/0.8772, allocations: 8.039 MB / 0.5709 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006171/0.8835, allocations: 342.5 kB / 0.5712 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00136/0.8849, allocations: 380.1 kB / 0.5715 GB, free: 116.4 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.004099/0.889, allocations: 2.481 MB / 0.574 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007479/0.8897, allocations: 406.7 kB / 0.5744 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00676/0.8965, allocations: 3.898 MB / 0.5782 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.544e-05/0.8966, allocations: 24 kB / 0.5782 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.8966, allocations: 4 kB / 0.5782 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/0.8966, allocations: 11.97 kB / 0.5782 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01624/0.9128, allocations: 10.17 MB / 0.5881 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/0.9129, allocations: 4.594 kB / 0.5881 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001494/0.9144, allocations: 359.4 kB / 0.5885 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002939/0.9174, allocations: 0.9801 MB / 0.5894 GB, free: 99.35 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.9175, allocations: 40 kB / 0.5895 GB, free: 99.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00743/0.9249, allocations: 6.667 MB / 0.596 GB, free: 92.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.925, allocations: 11.94 kB / 0.596 GB, free: 92.49 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008904/0.9339, allocations: 6.616 MB / 0.6025 GB, free: 85.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.9349, allocations: 451.7 kB / 0.6029 GB, free: 85.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004298/0.9354, allocations: 36 kB / 0.6029 GB, free: 85.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/0.9369, allocations: 115.9 kB / 0.603 GB, free: 85.19 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003739/0.9373, allocations: 144.9 kB / 0.6032 GB, free: 85.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.9375, allocations: 60 kB / 0.6032 GB, free: 84.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003417/0.9409, allocations: 2.828 MB / 0.606 GB, free: 82.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9409, allocations: 0 / 0.606 GB, free: 82.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005221/0.9461, allocations: 1.158 MB / 0.6071 GB, free: 81.01 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.009129/0.9553, allocations: 7.332 MB / 0.6143 GB, free: 73.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009186/0.9645, allocations: 6.624 MB / 0.6208 GB, free: 67.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.321e-06/0.9645, allocations: 4.188 kB / 0.6208 GB, free: 67.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00206/0.9666, allocations: 1.84 MB / 0.6226 GB, free: 65.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002881/0.9694, allocations: 0.5583 MB / 0.6231 GB, free: 64.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06473/1.034, allocations: 59.5 MB / 0.6812 GB, free: 12.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004374/1.039, allocations: 3.863 MB / 0.685 GB, free: 8.887 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004858/1.043, allocations: 1.93 MB / 0.6869 GB, free: 6.949 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002964/1.046, allocations: 2.292 MB / 0.6891 GB, free: 4.656 MB / 462.1 MB Notification: Performance of SimCode: time 1.262e-06/1.046, allocations: 3.938 kB / 0.6891 GB, free: 4.652 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3507/1.397, allocations: 87.79 MB / 0.7748 GB, free: 87.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/13.45, allocations: 11.75 kB / 0.7748 GB, free: 87.61 MB / 462.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 & 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