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.001723/0.001723, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.002102/0.002102, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.451/1.451, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.002173/0.002173, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1118, allocations: 46.61 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2449/0.3568, allocations: 13.54 MB / 388.2 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.3682, allocations: 4.857 MB / 393 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004443/0.3727, allocations: 86.78 kB / 393.1 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01206/0.3849, allocations: 4.194 MB / 397.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009142/0.394, allocations: 2.201 MB / 399.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004293/0.3984, allocations: 1.12 MB / 400.6 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009858/0.4082, allocations: 5.63 MB / 406.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008641/0.4169, allocations: 5.306 MB / 411.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005064/0.422, allocations: 2.166 MB / 413.7 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005121/0.4272, allocations: 2.88 MB / 416.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001922/0.4292, allocations: 0.496 MB / 417.1 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004328/0.4335, allocations: 1.631 MB / 418.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003648/0.4372, allocations: 2.623 MB / 421.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005491/0.4427, allocations: 2.969 MB / 424.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01296/0.4557, allocations: 9.733 MB / 434.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.4557, allocations: 0 / 434.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4558, allocations: 4 kB / 434.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003103/0.4561, allocations: 0 / 434.1 MB, free: 4.27 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.01586/0.472, allocations: 6.386 MB / 440.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.472, allocations: 8.031 kB / 440.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002501/0.4745, allocations: 0.9325 MB / 441.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03595/0.5105, allocations: 6.059 MB / 447.5 MB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01119/0.5217, allocations: 4.806 MB / 452.3 MB, free: 1.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003371/0.5221, allocations: 312.3 kB / 452.6 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0019/0.524, allocations: 439.6 kB / 453 MB, free: 1.172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02661/0.5507, allocations: 12.31 MB / 465.3 MB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002929/0.551, allocations: 47.64 kB / 465.3 MB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001499/0.5525, allocations: 187.9 kB / 465.5 MB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003169/0.5557, allocations: 2.043 MB / 467.6 MB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02384/0.5796, allocations: 10.35 MB / 477.9 MB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06499/0.6446, allocations: 44.02 MB / 0.5097 GB, free: 10.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01343/0.6581, allocations: 4.791 MB / 0.5144 GB, free: 5.266 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003263/0.6614, allocations: 1.963 MB / 0.5163 GB, free: 3.293 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01389/0.6753, allocations: 7.029 MB / 0.5232 GB, free: 12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.502e-05/0.6755, allocations: 51.56 kB / 0.5232 GB, free: 11.94 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 5.34e-06/0.6755, allocations: 0 / 0.5232 GB, free: 11.94 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.0682/0.7437, allocations: 19.49 MB / 0.5423 GB, free: 8.414 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.7439, allocations: 213.9 kB / 0.5425 GB, free: 8.164 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009232/0.7531, allocations: 4.522 MB / 0.5469 GB, free: 3.629 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00048/0.7536, allocations: 61.7 kB / 0.5469 GB, free: 3.562 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2146/0.9683, allocations: 3.692 MB / 0.5505 GB, free: 148.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001248/0.9696, allocations: 0.8774 MB / 0.5514 GB, free: 148.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002548/0.9721, allocations: 1.279 MB / 0.5526 GB, free: 148.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.8e-05/0.9722, allocations: 302.2 kB / 0.5529 GB, free: 148.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004284/0.9765, allocations: 2.233 MB / 0.5551 GB, free: 148.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006273/0.9828, allocations: 5.975 MB / 0.561 GB, free: 142.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01095/0.9938, allocations: 8.921 MB / 0.5697 GB, free: 135 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002241/0.994, allocations: 38.98 kB / 0.5697 GB, free: 135 MB / 478.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01952/1.014, allocations: 9.067 MB / 0.5786 GB, free: 131.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001214/1.014, allocations: 60.59 kB / 0.5786 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002239/1.014, allocations: 132.5 kB / 0.5787 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00381/1.018, allocations: 1.206 MB / 0.5799 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00469/1.022, allocations: 1.423 MB / 0.5813 GB, free: 131.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009674/1.032, allocations: 8.003 MB / 0.5891 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00557/1.038, allocations: 343 kB / 0.5894 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001101/1.039, allocations: 385.1 kB / 0.5898 GB, free: 126.9 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.004544/1.043, allocations: 2.484 MB / 0.5922 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00106/1.045, allocations: 434.4 kB / 0.5927 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007151/1.052, allocations: 3.889 MB / 0.5965 GB, free: 123.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.435e-05/1.052, allocations: 27.67 kB / 0.5965 GB, free: 123.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/1.052, allocations: 4 kB / 0.5965 GB, free: 123.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-05/1.052, allocations: 13.98 kB / 0.5965 GB, free: 123.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/1.068, allocations: 9.961 MB / 0.6062 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.341e-05/1.068, allocations: 4.062 kB / 0.6062 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/1.07, allocations: 339.5 kB / 0.6066 GB, free: 114 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003069/1.073, allocations: 0.98 MB / 0.6075 GB, free: 113 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002603/1.073, allocations: 44 kB / 0.6076 GB, free: 112.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007709/1.081, allocations: 6.686 MB / 0.6141 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/1.081, allocations: 8 kB / 0.6141 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009527/1.09, allocations: 6.621 MB / 0.6206 GB, free: 99.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/1.092, allocations: 0.7425 MB / 0.6213 GB, free: 98.64 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007626/1.093, allocations: 41.5 kB / 0.6213 GB, free: 98.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001804/1.095, allocations: 111.9 kB / 0.6214 GB, free: 98.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000388/1.095, allocations: 141 kB / 0.6216 GB, free: 98.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001711/1.096, allocations: 60 kB / 0.6216 GB, free: 98.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004079/1.1, allocations: 2.856 MB / 0.6244 GB, free: 95.45 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.8e-07/1.1, allocations: 1.312 kB / 0.6244 GB, free: 95.45 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006334/1.106, allocations: 1.179 MB / 0.6256 GB, free: 94.28 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.009949/1.116, allocations: 7.343 MB / 0.6327 GB, free: 86.87 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007728/1.124, allocations: 5.532 MB / 0.6381 GB, free: 81.35 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/1.124, allocations: 1.203 kB / 0.6381 GB, free: 81.35 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002172/1.126, allocations: 1.834 MB / 0.6399 GB, free: 79.51 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00333/1.129, allocations: 0.5737 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.06951/1.199, allocations: 51.68 MB / 0.6909 GB, free: 21.34 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004575/1.204, allocations: 3.879 MB / 0.6947 GB, free: 17.44 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004299/1.208, allocations: 1.946 MB / 0.6966 GB, free: 15.49 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00363/1.212, allocations: 2.292 MB / 0.6989 GB, free: 13.2 MB / 478.1 MB Notification: Performance of SimCode: time 2.755e-06/1.212, allocations: 0 / 0.6989 GB, free: 13.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3599/1.571, allocations: 84.2 MB / 0.7811 GB, free: 148.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.29/28.87, allocations: 16.11 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