Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_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.001398/0.001398, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001498/0.001498, allocations: 194.9 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 51.94 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.09452, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2167/0.3113, allocations: 13.53 MB / 388.2 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0115/0.3228, allocations: 4.857 MB / 393 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00362/0.3266, allocations: 92.09 kB / 393.1 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007719/0.3343, allocations: 4.19 MB / 397.3 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006869/0.3412, allocations: 2.197 MB / 399.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003398/0.3446, allocations: 1.114 MB / 400.6 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009683/0.3543, allocations: 5.639 MB / 406.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00723/0.3616, allocations: 5.302 MB / 411.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004783/0.3664, allocations: 2.169 MB / 413.7 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005375/0.3718, allocations: 2.881 MB / 416.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001802/0.3737, allocations: 0.4922 MB / 417.1 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00429/0.378, allocations: 1.635 MB / 418.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003539/0.3815, allocations: 2.623 MB / 421.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004611/0.3862, allocations: 2.965 MB / 424.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01351/0.3997, allocations: 9.729 MB / 434.1 MB, free: 4.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.3998, allocations: 4 kB / 434.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3998, allocations: 4 kB / 434.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000352/0.4001, allocations: 0 / 434.1 MB, free: 4.273 MB / 350.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.01655/0.4167, allocations: 6.394 MB / 440.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.4168, allocations: 8.031 kB / 440.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002203/0.419, allocations: 0.9364 MB / 441.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03847/0.4575, allocations: 6.055 MB / 447.5 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01155/0.4691, allocations: 4.806 MB / 452.3 MB, free: 1.902 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003058/0.4694, allocations: 308.3 kB / 452.6 MB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001872/0.4713, allocations: 439.7 kB / 453 MB, free: 1.168 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02524/0.4965, allocations: 12.3 MB / 465.3 MB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001677/0.4968, allocations: 55.56 kB / 465.4 MB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006298/0.4974, allocations: 195.9 kB / 465.5 MB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003273/0.5007, allocations: 2.027 MB / 467.6 MB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02268/0.5234, allocations: 10.35 MB / 477.9 MB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06321/0.5866, allocations: 44.02 MB / 0.5097 GB, free: 10.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01408/0.6008, allocations: 4.791 MB / 0.5144 GB, free: 5.258 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003082/0.6039, allocations: 1.967 MB / 0.5163 GB, free: 3.285 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01378/0.6177, allocations: 7.025 MB / 0.5232 GB, free: 11.99 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.914e-05/0.6178, allocations: 55.48 kB / 0.5232 GB, free: 11.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 6.723e-06/0.6179, allocations: 0 / 0.5232 GB, free: 11.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.07133/0.6892, allocations: 19.49 MB / 0.5423 GB, free: 8.406 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.6894, allocations: 205.9 kB / 0.5425 GB, free: 8.164 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006839/0.6962, allocations: 4.53 MB / 0.5469 GB, free: 3.621 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004849/0.6967, allocations: 61.64 kB / 0.5469 GB, free: 3.555 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2026/0.8993, allocations: 3.696 MB / 0.5505 GB, free: 148.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001215/0.9006, allocations: 0.8754 MB / 0.5514 GB, free: 148.9 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002172/0.9028, allocations: 1.278 MB / 0.5527 GB, free: 148.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.014e-05/0.9028, allocations: 303.5 kB / 0.5529 GB, free: 148.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003813/0.9066, allocations: 2.228 MB / 0.5551 GB, free: 148.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00539/0.912, allocations: 5.977 MB / 0.561 GB, free: 142.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009758/0.9218, allocations: 8.917 MB / 0.5697 GB, free: 135 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001822/0.9221, allocations: 36.94 kB / 0.5697 GB, free: 135 MB / 478.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01846/0.9405, allocations: 9.064 MB / 0.5785 GB, free: 131.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.9407, allocations: 65.69 kB / 0.5786 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002347/0.9409, allocations: 130.7 kB / 0.5787 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003857/0.9448, allocations: 1.216 MB / 0.5799 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004686/0.9495, allocations: 1.417 MB / 0.5813 GB, free: 131.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009702/0.9592, allocations: 8.01 MB / 0.5891 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005216/0.9645, allocations: 341.2 kB / 0.5895 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009792/0.9655, allocations: 377 kB / 0.5898 GB, free: 127 MB / 478.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.004041/0.9695, allocations: 2.49 MB / 0.5922 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007739/0.9703, allocations: 433.1 kB / 0.5927 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006968/0.9773, allocations: 3.889 MB / 0.5965 GB, free: 123.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-05/0.9773, allocations: 24 kB / 0.5965 GB, free: 123.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.9774, allocations: 4 kB / 0.5965 GB, free: 123.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.748e-05/0.9774, allocations: 15.34 kB / 0.5965 GB, free: 123.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/0.9948, allocations: 9.965 MB / 0.6062 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-05/0.9949, allocations: 4 kB / 0.6062 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/0.9963, allocations: 335.5 kB / 0.6066 GB, free: 113.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003019/0.9994, allocations: 0.9841 MB / 0.6075 GB, free: 113 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001842/0.9996, allocations: 40 kB / 0.6076 GB, free: 112.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00776/1.007, allocations: 6.687 MB / 0.6141 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/1.007, allocations: 12 kB / 0.6141 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009191/1.017, allocations: 6.614 MB / 0.6206 GB, free: 99.39 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001993/1.019, allocations: 0.7486 MB / 0.6213 GB, free: 98.63 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006631/1.019, allocations: 40 kB / 0.6213 GB, free: 98.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001688/1.021, allocations: 109.5 kB / 0.6214 GB, free: 98.49 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003154/1.021, allocations: 152.5 kB / 0.6216 GB, free: 98.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/1.021, allocations: 60 kB / 0.6216 GB, free: 98.29 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003907/1.025, allocations: 2.848 MB / 0.6244 GB, free: 95.44 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.025, allocations: 1.312 kB / 0.6244 GB, free: 95.44 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005736/1.031, allocations: 1.179 MB / 0.6256 GB, free: 94.27 MB / 478.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.009493/1.041, allocations: 7.33 MB / 0.6327 GB, free: 86.87 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007612/1.048, allocations: 5.539 MB / 0.6381 GB, free: 81.34 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.048, allocations: 1.203 kB / 0.6381 GB, free: 81.34 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002148/1.05, allocations: 1.837 MB / 0.6399 GB, free: 79.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003317/1.054, allocations: 0.5743 MB / 0.6405 GB, free: 78.95 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06965/1.123, allocations: 51.68 MB / 0.691 GB, free: 21.33 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004253/1.128, allocations: 3.875 MB / 0.6947 GB, free: 17.43 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004285/1.132, allocations: 1.946 MB / 0.6966 GB, free: 15.48 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003137/1.135, allocations: 2.292 MB / 0.6989 GB, free: 13.19 MB / 478.1 MB Notification: Performance of SimCode: time 3.216e-06/1.135, allocations: 4 kB / 0.6989 GB, free: 13.19 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3583/1.494, allocations: 84.2 MB / 0.7811 GB, free: 148.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.5/28, allocations: 16.2 kB / 0.7811 GB, free: 148.2 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches