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.001603/0.001603, allocations: 98.64 kB / 17.58 MB, free: 5.418 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.001719/0.001719, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.43/2.43, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001854/0.001855, allocations: 51.92 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1548, allocations: 46.64 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.02339/0.1782, allocations: 13.52 MB / 340.9 MB, free: 6.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01544/0.1937, allocations: 4.862 MB / 345.8 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003865/0.1977, allocations: 87.75 kB / 345.9 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01139/0.2091, allocations: 4.182 MB / 350 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009506/0.2187, allocations: 2.152 MB / 352.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004365/0.2231, allocations: 1.103 MB / 353.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0125/0.2356, allocations: 5.643 MB / 358.9 MB, free: 4.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01188/0.2476, allocations: 5.328 MB / 364.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005949/0.2536, allocations: 2.154 MB / 366.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006775/0.2604, allocations: 2.878 MB / 369.3 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00241/0.2629, allocations: 0.4922 MB / 369.8 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005938/0.2688, allocations: 1.623 MB / 371.4 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005883/0.2748, allocations: 2.588 MB / 374 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008903/0.2837, allocations: 2.965 MB / 377 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3247/0.6085, allocations: 9.449 MB / 386.4 MB, free: 25.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.6086, allocations: 0 / 386.4 MB, free: 25.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.6086, allocations: 1.031 kB / 386.4 MB, free: 25.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.00046/0.6091, allocations: 0 / 386.4 MB, free: 25.22 MB / 318.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.035/0.6441, allocations: 6.225 MB / 392.6 MB, free: 22.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.801e-05/0.6442, allocations: 14.19 kB / 392.7 MB, free: 22.88 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006404/0.6506, allocations: 0.928 MB / 393.6 MB, free: 22.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07221/0.7229, allocations: 6.017 MB / 399.6 MB, free: 21.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02149/0.7444, allocations: 4.719 MB / 404.3 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006402/0.7451, allocations: 309.1 kB / 404.6 MB, free: 19.65 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003929/0.7491, allocations: 450 kB / 405.1 MB, free: 19.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04508/0.7942, allocations: 12.3 MB / 417.4 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004557/0.7947, allocations: 51.86 kB / 417.4 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00306/0.7978, allocations: 187 kB / 417.6 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005401/0.8033, allocations: 2.037 MB / 419.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03808/0.8414, allocations: 10.36 MB / 430 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.114/0.9554, allocations: 44.16 MB / 474.2 MB, free: 2.652 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02544/0.9809, allocations: 4.8 MB / 479 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005817/0.9868, allocations: 1.981 MB / 480.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02486/1.012, allocations: 6.998 MB / 487.9 MB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001001/1.012, allocations: 55.02 kB / 488 MB, free: 4.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 1.047e-05/1.012, allocations: 2.188 kB / 488 MB, free: 4.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=223): time 0.1402/1.152, allocations: 19.2 MB / 0.4953 GB, free: 1.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001929/1.152, allocations: 213.1 kB / 0.4955 GB, free: 1.035 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01624/1.169, allocations: 4.523 MB / 0.4999 GB, free: 12.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008161/1.17, allocations: 61.7 kB / 0.5 GB, free: 12.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005557/1.175, allocations: 3.569 MB / 0.5035 GB, free: 8.887 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002131/1.177, allocations: 0.835 MB / 0.5043 GB, free: 8.059 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006171/1.184, allocations: 1.266 MB / 0.5055 GB, free: 6.781 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/1.184, allocations: 301.1 kB / 0.5058 GB, free: 6.484 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007686/1.191, allocations: 2.234 MB / 0.508 GB, free: 4.246 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01272/1.204, allocations: 5.974 MB / 0.5138 GB, free: 12.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02119/1.225, allocations: 8.908 MB / 0.5225 GB, free: 2.273 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002062/1.226, allocations: 36 kB / 0.5225 GB, free: 2.238 MB / 430.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.327/1.553, allocations: 9.035 MB / 0.5314 GB, free: 144.1 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003121/1.553, allocations: 66.5 kB / 0.5314 GB, free: 144.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004434/1.554, allocations: 130.2 kB / 0.5316 GB, free: 144.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007591/1.561, allocations: 1.21 MB / 0.5327 GB, free: 143.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009475/1.571, allocations: 1.416 MB / 0.5341 GB, free: 143.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01946/1.59, allocations: 8.038 MB / 0.542 GB, free: 139.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01025/1.601, allocations: 350.8 kB / 0.5423 GB, free: 139.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00226/1.603, allocations: 377.8 kB / 0.5427 GB, free: 139.4 MB / 430.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.009657/1.613, allocations: 2.49 MB / 0.5451 GB, free: 138.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001749/1.614, allocations: 409.4 kB / 0.5455 GB, free: 138.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01527/1.63, allocations: 3.881 MB / 0.5493 GB, free: 136.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.861e-05/1.63, allocations: 30.34 kB / 0.5493 GB, free: 136.9 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.485e-05/1.63, allocations: 7.469 kB / 0.5493 GB, free: 136.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.383e-05/1.63, allocations: 15.14 kB / 0.5493 GB, free: 136.9 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04166/1.672, allocations: 10.19 MB / 0.5593 GB, free: 127.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-05/1.672, allocations: 4 kB / 0.5593 GB, free: 127.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003306/1.675, allocations: 343.4 kB / 0.5596 GB, free: 127.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00614/1.681, allocations: 0.9868 MB / 0.5606 GB, free: 126.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000665/1.682, allocations: 47.98 kB / 0.5606 GB, free: 126.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01556/1.698, allocations: 6.643 MB / 0.5671 GB, free: 119.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.296e-05/1.698, allocations: 11.94 kB / 0.5671 GB, free: 119.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01933/1.717, allocations: 6.61 MB / 0.5736 GB, free: 113.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003894/1.721, allocations: 0.7222 MB / 0.5743 GB, free: 112.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00217/1.723, allocations: 46.81 kB / 0.5743 GB, free: 112.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006412/1.73, allocations: 107.8 kB / 0.5744 GB, free: 112.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001348/1.731, allocations: 147.2 kB / 0.5746 GB, free: 112.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000707/1.732, allocations: 65.41 kB / 0.5746 GB, free: 112.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.01184/1.744, allocations: 2.852 MB / 0.5774 GB, free: 109.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.402e-06/1.744, allocations: 0 / 0.5774 GB, free: 109.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01458/1.758, allocations: 1.172 MB / 0.5786 GB, free: 108.1 MB / 430.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.0213/1.78, allocations: 7.328 MB / 0.5857 GB, free: 100.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01961/1.799, allocations: 6.629 MB / 0.5922 GB, free: 94.12 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.594e-05/1.799, allocations: 4 kB / 0.5922 GB, free: 94.12 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004703/1.804, allocations: 1.824 MB / 0.594 GB, free: 92.29 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007765/1.812, allocations: 0.5736 MB / 0.5945 GB, free: 91.73 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1642/1.976, allocations: 59.84 MB / 0.653 GB, free: 23.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01309/1.989, allocations: 3.879 MB / 0.6568 GB, free: 19.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.01124/2.001, allocations: 1.93 MB / 0.6586 GB, free: 17.69 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007725/2.008, allocations: 2.292 MB / 0.6609 GB, free: 15.39 MB / 430.1 MB Notification: Performance of SimCode: time 2.344e-06/2.009, allocations: 0 / 0.6609 GB, free: 15.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5497/2.558, allocations: 88.32 MB / 0.7471 GB, free: 117.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.17/22.73, allocations: 8.219 kB / 0.7471 GB, free: 117.5 MB / 446.1 MB (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