Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001225/0.001224, allocations: 107.7 kB / 17.06 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 198.8 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2725, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01459/0.2871, allocations: 13.49 MB / 413.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.2973, allocations: 4.841 MB / 418.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002186/0.2996, allocations: 91.69 kB / 418.7 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007938/0.3076, allocations: 4.202 MB / 422.9 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006592/0.3142, allocations: 2.195 MB / 425.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002928/0.3171, allocations: 1.115 MB / 426.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01113/0.3283, allocations: 5.975 MB / 432.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00845/0.3368, allocations: 5.309 MB / 437.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004562/0.3414, allocations: 2.154 MB / 439.6 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004866/0.3463, allocations: 2.871 MB / 442.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001923/0.3482, allocations: 0.4922 MB / 443 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004222/0.3525, allocations: 1.646 MB / 444.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00365/0.3561, allocations: 2.611 MB / 447.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005169/0.3613, allocations: 2.957 MB / 450.2 MB, free: 6.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01438/0.3757, allocations: 9.71 MB / 459.9 MB, free: 12.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.3758, allocations: 0 / 459.9 MB, free: 12.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.3758, allocations: 0 / 459.9 MB, free: 12.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006129/0.3764, allocations: 0 / 459.9 MB, free: 12.9 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.01867/0.3951, allocations: 6.363 MB / 466.3 MB, free: 6.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3952, allocations: 8.031 kB / 466.3 MB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002652/0.3978, allocations: 0.9364 MB / 467.2 MB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03822/0.4361, allocations: 6.051 MB / 473.2 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01067/0.4468, allocations: 4.477 MB / 477.7 MB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003434/0.4472, allocations: 312.1 kB / 478 MB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001806/0.449, allocations: 443.7 kB / 478.5 MB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02757/0.4766, allocations: 12.32 MB / 490.8 MB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003498/0.477, allocations: 43.64 kB / 490.8 MB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001543/0.4785, allocations: 191.9 kB / 491 MB, free: 12.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003533/0.4821, allocations: 2.035 MB / 493 MB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02393/0.506, allocations: 10.36 MB / 0.4916 GB, free: 464 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06602/0.5721, allocations: 43.98 MB / 0.5346 GB, free: 3.207 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2372/0.8093, allocations: 4.799 MB / 0.5392 GB, free: 128.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002504/0.8119, allocations: 1.966 MB / 0.5412 GB, free: 127.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/0.8224, allocations: 7.005 MB / 0.548 GB, free: 124.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.8225, allocations: 62.88 kB / 0.5481 GB, free: 124.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 5.029e-06/0.8225, allocations: 0 / 0.5481 GB, free: 124.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.05811/0.8806, allocations: 19.37 MB / 0.567 GB, free: 112.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.901e-05/0.8807, allocations: 205.9 kB / 0.5672 GB, free: 111.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00502/0.8857, allocations: 4.499 MB / 0.5716 GB, free: 107.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003777/0.8861, allocations: 57.7 kB / 0.5716 GB, free: 107.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001673/0.8878, allocations: 3.698 MB / 0.5752 GB, free: 104.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000769/0.8886, allocations: 0.8739 MB / 0.5761 GB, free: 103.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001309/0.8899, allocations: 1.271 MB / 0.5773 GB, free: 101.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.186e-05/0.89, allocations: 313.1 kB / 0.5776 GB, free: 101.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002535/0.8925, allocations: 2.222 MB / 0.5798 GB, free: 99.37 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003778/0.8963, allocations: 5.979 MB / 0.5856 GB, free: 91.55 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007966/0.9043, allocations: 8.908 MB / 0.5943 GB, free: 80.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001276/0.9045, allocations: 39.94 kB / 0.5944 GB, free: 80.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01541/0.9199, allocations: 9.07 MB / 0.6032 GB, free: 71.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001651/0.9201, allocations: 60 kB / 0.6033 GB, free: 71.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002412/0.9204, allocations: 132 kB / 0.6034 GB, free: 71.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/0.9239, allocations: 1.215 MB / 0.6046 GB, free: 70.28 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004302/0.9283, allocations: 1.415 MB / 0.606 GB, free: 68.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009955/0.9382, allocations: 8.006 MB / 0.6138 GB, free: 60.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00552/0.9438, allocations: 343.6 kB / 0.6141 GB, free: 60.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001185/0.945, allocations: 384 kB / 0.6145 GB, free: 60.02 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.004985/0.95, allocations: 2.475 MB / 0.6169 GB, free: 57.53 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/0.9511, allocations: 433.1 kB / 0.6173 GB, free: 57.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00769/0.9588, allocations: 3.885 MB / 0.6211 GB, free: 53.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.131e-05/0.9589, allocations: 30.97 kB / 0.6211 GB, free: 53.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.946e-05/0.9589, allocations: 8 kB / 0.6212 GB, free: 53.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.034e-05/0.959, allocations: 11.95 kB / 0.6212 GB, free: 53.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02087/0.9798, allocations: 9.963 MB / 0.6309 GB, free: 43.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.742e-05/0.9799, allocations: 4 kB / 0.6309 GB, free: 43.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001452/0.9814, allocations: 327.5 kB / 0.6312 GB, free: 42.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003067/0.9845, allocations: 0.992 MB / 0.6322 GB, free: 41.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002826/0.9848, allocations: 40 kB / 0.6322 GB, free: 41.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007974/0.9928, allocations: 6.691 MB / 0.6388 GB, free: 34.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.9928, allocations: 7.938 kB / 0.6388 GB, free: 34.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009751/1.003, allocations: 6.624 MB / 0.6452 GB, free: 28.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/1.004, allocations: 470.1 kB / 0.6457 GB, free: 27.72 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001061/1.005, allocations: 43.98 kB / 0.6457 GB, free: 27.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002192/1.007, allocations: 103.9 kB / 0.6458 GB, free: 27.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004473/1.008, allocations: 149 kB / 0.646 GB, free: 27.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001917/1.008, allocations: 63.98 kB / 0.646 GB, free: 27.36 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004821/1.013, allocations: 2.836 MB / 0.6488 GB, free: 24.53 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.013, allocations: 3.938 kB / 0.6488 GB, free: 24.52 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006251/1.019, allocations: 1.171 MB / 0.6499 GB, free: 23.36 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.01075/1.03, allocations: 7.342 MB / 0.6571 GB, free: 15.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007963/1.038, allocations: 5.529 MB / 0.6625 GB, free: 10.41 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.198e-06/1.038, allocations: 448 / 0.6625 GB, free: 10.41 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002463/1.04, allocations: 1.836 MB / 0.6643 GB, free: 8.555 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004553/1.045, allocations: 0.5665 MB / 0.6649 GB, free: 7.988 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1023/1.147, allocations: 51.49 MB / 0.7151 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006996/1.154, allocations: 3.871 MB / 0.7189 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005105/1.159, allocations: 1.938 MB / 0.7208 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004015/1.163, allocations: 2.292 MB / 0.7231 GB, free: 6.391 MB / 0.5137 GB Notification: Performance of SimCode: time 8.21e-07/1.163, allocations: 0 / 0.7231 GB, free: 6.391 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3801/1.543, allocations: 83.94 MB / 0.805 GB, free: 113.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.07/27.61, allocations: 4 kB / 0.805 GB, free: 113.6 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches