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.001386/0.001386, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001288/0.001288, allocations: 193.4 kB / 18 MB, free: 5.074 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.457/1.457, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2697, 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.01628/0.2861, allocations: 13.48 MB / 413.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.2969, allocations: 4.861 MB / 418.6 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00229/0.2992, allocations: 87.75 kB / 418.7 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0082/0.3075, allocations: 4.19 MB / 422.9 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006503/0.314, allocations: 2.146 MB / 425 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003085/0.3171, allocations: 1.107 MB / 426.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01067/0.3278, allocations: 5.975 MB / 432.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01047/0.3383, allocations: 5.305 MB / 437.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005599/0.344, allocations: 2.158 MB / 439.5 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006629/0.3507, allocations: 2.863 MB / 442.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002239/0.3529, allocations: 0.4922 MB / 442.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004655/0.3576, allocations: 1.635 MB / 444.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004005/0.3617, allocations: 2.58 MB / 447.1 MB, free: 9.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005813/0.3675, allocations: 2.957 MB / 450.1 MB, free: 6.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01762/0.3852, allocations: 9.698 MB / 459.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.3852, allocations: 4 kB / 459.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3852, allocations: 0 / 459.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000331/0.3856, allocations: 0 / 459.8 MB, free: 13.02 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.01839/0.404, allocations: 6.367 MB / 466.1 MB, free: 6.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.4041, allocations: 12.03 kB / 466.1 MB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002407/0.4065, allocations: 0.9325 MB / 467.1 MB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04046/0.4469, allocations: 6.051 MB / 473.1 MB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01106/0.458, allocations: 4.47 MB / 477.6 MB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003227/0.4584, allocations: 312.1 kB / 477.9 MB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001721/0.4601, allocations: 443.7 kB / 478.3 MB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02571/0.4858, allocations: 12.31 MB / 490.6 MB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001718/0.4861, allocations: 55.62 kB / 490.7 MB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005645/0.4866, allocations: 191.8 kB / 490.9 MB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003554/0.4902, allocations: 2.039 MB / 492.9 MB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02286/0.5131, allocations: 10.34 MB / 0.4915 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06013/0.5733, allocations: 43.99 MB / 0.5344 GB, free: 3.324 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2329/0.8061, allocations: 4.807 MB / 0.5391 GB, free: 128.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0036/0.8098, allocations: 1.967 MB / 0.5411 GB, free: 127.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01339/0.8232, allocations: 7.003 MB / 0.5479 GB, free: 124.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.8233, allocations: 54.62 kB / 0.5479 GB, free: 124.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 6.723e-06/0.8233, allocations: 0 / 0.5479 GB, free: 124.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.09125/0.9146, allocations: 19.37 MB / 0.5669 GB, free: 112.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.046e-05/0.9147, allocations: 209.9 kB / 0.5671 GB, free: 112 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008555/0.9233, allocations: 4.493 MB / 0.5714 GB, free: 107.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005578/0.9239, allocations: 65.38 kB / 0.5715 GB, free: 107.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002591/0.9265, allocations: 3.699 MB / 0.5751 GB, free: 104.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001198/0.9277, allocations: 0.8728 MB / 0.576 GB, free: 103.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002099/0.9298, allocations: 1.282 MB / 0.5772 GB, free: 102 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.472e-05/0.9299, allocations: 301.1 kB / 0.5775 GB, free: 101.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004494/0.9344, allocations: 2.23 MB / 0.5797 GB, free: 99.47 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005712/0.9402, allocations: 5.975 MB / 0.5855 GB, free: 91.65 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01194/0.9521, allocations: 8.913 MB / 0.5942 GB, free: 80.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001284/0.9523, allocations: 40 kB / 0.5943 GB, free: 80.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.02418/0.9765, allocations: 9.064 MB / 0.6031 GB, free: 71.79 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.9767, allocations: 60 kB / 0.6032 GB, free: 71.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000163/0.9769, allocations: 136.1 kB / 0.6033 GB, free: 71.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005533/0.9824, allocations: 1.202 MB / 0.6045 GB, free: 70.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006426/0.9889, allocations: 1.411 MB / 0.6059 GB, free: 68.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01453/1.003, allocations: 8.015 MB / 0.6137 GB, free: 60.83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008078/1.012, allocations: 339.5 kB / 0.614 GB, free: 60.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001876/1.014, allocations: 380 kB / 0.6144 GB, free: 60.13 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.008402/1.022, allocations: 2.491 MB / 0.6168 GB, free: 57.63 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001331/1.023, allocations: 429.1 kB / 0.6172 GB, free: 57.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01075/1.034, allocations: 3.885 MB / 0.621 GB, free: 53.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.599e-05/1.034, allocations: 24 kB / 0.621 GB, free: 53.29 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-05/1.034, allocations: 8 kB / 0.621 GB, free: 53.28 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.08e-05/1.034, allocations: 15.89 kB / 0.6211 GB, free: 53.26 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02495/1.059, allocations: 9.965 MB / 0.6308 GB, free: 43.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.133e-05/1.059, allocations: 4 kB / 0.6308 GB, free: 43.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002231/1.062, allocations: 320.1 kB / 0.6311 GB, free: 42.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004724/1.066, allocations: 0.9917 MB / 0.6321 GB, free: 41.88 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003172/1.067, allocations: 48.39 kB / 0.6321 GB, free: 41.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01252/1.079, allocations: 6.688 MB / 0.6386 GB, free: 35.01 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.226e-06/1.079, allocations: 7.984 kB / 0.6386 GB, free: 35 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01477/1.094, allocations: 6.622 MB / 0.6451 GB, free: 28.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001722/1.096, allocations: 470.1 kB / 0.6456 GB, free: 27.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008565/1.097, allocations: 43.94 kB / 0.6456 GB, free: 27.78 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002609/1.099, allocations: 111.1 kB / 0.6457 GB, free: 27.67 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004675/1.1, allocations: 145.1 kB / 0.6458 GB, free: 27.53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002105/1.1, allocations: 60 kB / 0.6459 GB, free: 27.47 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005748/1.106, allocations: 2.836 MB / 0.6487 GB, free: 24.63 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.106, allocations: 0 / 0.6487 GB, free: 24.63 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008661/1.114, allocations: 1.179 MB / 0.6498 GB, free: 23.45 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.01492/1.129, allocations: 7.344 MB / 0.657 GB, free: 16.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01154/1.141, allocations: 5.523 MB / 0.6624 GB, free: 10.51 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/1.141, allocations: 0 / 0.6624 GB, free: 10.51 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003622/1.145, allocations: 1.841 MB / 0.6642 GB, free: 8.656 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004805/1.15, allocations: 0.5795 MB / 0.6648 GB, free: 8.078 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09731/1.247, allocations: 51.49 MB / 0.715 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005308/1.252, allocations: 3.863 MB / 0.7188 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004813/1.257, allocations: 1.946 MB / 0.7207 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003468/1.261, allocations: 2.284 MB / 0.7229 GB, free: 6.488 MB / 0.5137 GB Notification: Performance of SimCode: time 1.493e-06/1.261, allocations: 0 / 0.7229 GB, free: 6.488 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.35/1.611, allocations: 83.93 MB / 0.8049 GB, free: 113.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.51/28.12, allocations: 12 kB / 0.8049 GB, free: 113.5 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