Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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.001743/0.001743, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.001992/0.001992, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.143/2.143, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 55.53 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1728, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03008/0.2029, allocations: 15.03 MB / 365.2 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02023/0.2232, allocations: 4.819 MB / 370 MB, free: 372 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005098/0.2283, allocations: 91.75 kB / 370.1 MB, free: 280 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3327/0.5611, allocations: 3.155 MB / 373.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01/0.5712, allocations: 2.553 MB / 375.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00353/0.5748, allocations: 0.9842 MB / 376.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01471/0.5895, allocations: 6.97 MB / 383.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0103/0.5999, allocations: 4.338 MB / 388.1 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00635/0.6063, allocations: 2.216 MB / 390.3 MB, free: 5.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006372/0.6127, allocations: 3.237 MB / 393.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002364/0.6151, allocations: 486.7 kB / 394 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005262/0.6204, allocations: 1.498 MB / 395.5 MB, free: 3.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004919/0.6254, allocations: 2.864 MB / 398.4 MB, free: 500 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00795/0.6334, allocations: 3.308 MB / 401.7 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0149/0.6483, allocations: 10.2 MB / 411.9 MB, free: 3.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.6484, allocations: 4 kB / 411.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.6484, allocations: 0 / 411.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004159/0.6488, allocations: 0 / 411.9 MB, free: 3.203 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02327/0.6721, allocations: 7.476 MB / 419.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.367e-05/0.6722, allocations: 12.03 kB / 419.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003886/0.6761, allocations: 1.138 MB / 420.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05469/0.7308, allocations: 7.508 MB / 428 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01229/0.7431, allocations: 4.794 MB / 432.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003786/0.7436, allocations: 320.1 kB / 433.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002083/0.7457, allocations: 436.8 kB / 433.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04381/0.7895, allocations: 15.61 MB / 449.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004366/0.79, allocations: 63.45 kB / 449.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002833/0.7929, allocations: 207.3 kB / 449.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009112/0.802, allocations: 3.215 MB / 452.7 MB, free: 9.977 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04272/0.8448, allocations: 13.9 MB / 466.6 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1001/0.9449, allocations: 57.38 MB / 0.5117 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01624/0.9612, allocations: 6.494 MB / 0.518 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005886/0.9672, allocations: 3.566 MB / 0.5215 GB, free: 7.137 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3077/1.275, allocations: 14.31 MB / 0.5355 GB, free: 142.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.084e-05/1.275, allocations: 64.94 kB / 0.5355 GB, free: 142 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 1.711e-05/1.275, allocations: 0 / 0.5355 GB, free: 142 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.2182/1.493, allocations: 41.6 MB / 0.5761 GB, free: 120.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/1.494, allocations: 213.9 kB / 0.5763 GB, free: 120.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01601/1.51, allocations: 5.495 MB / 0.5817 GB, free: 115.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00141/1.511, allocations: 73.7 kB / 0.5818 GB, free: 115.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004547/1.516, allocations: 4.423 MB / 0.5861 GB, free: 110.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003323/1.519, allocations: 1.238 MB / 0.5873 GB, free: 109.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0086/1.528, allocations: 1.776 MB / 0.589 GB, free: 107.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.355e-05/1.528, allocations: 309.1 kB / 0.5893 GB, free: 107.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0111/1.539, allocations: 4.62 MB / 0.5939 GB, free: 102.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01236/1.551, allocations: 9.594 MB / 0.6032 GB, free: 90.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02725/1.579, allocations: 15.25 MB / 0.6181 GB, free: 72.92 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002224/1.579, allocations: 55.94 kB / 0.6182 GB, free: 72.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.06319/1.642, allocations: 18.95 MB / 0.6367 GB, free: 53.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001471/1.642, allocations: 76.94 kB / 0.6368 GB, free: 53.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002018/1.643, allocations: 179.9 kB / 0.6369 GB, free: 53.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02453/1.667, allocations: 5.773 MB / 0.6426 GB, free: 47.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008249/1.675, allocations: 2.051 MB / 0.6446 GB, free: 45.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03703/1.713, allocations: 25.66 MB / 0.6696 GB, free: 19.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01429/1.727, allocations: 0.5456 MB / 0.6702 GB, free: 19.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002978/1.73, allocations: 0.5 MB / 0.6706 GB, free: 18.79 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01151/1.742, allocations: 3.096 MB / 0.6737 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002833/1.744, allocations: 0.4974 MB / 0.6741 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05109/1.795, allocations: 12.6 MB / 0.6865 GB, free: 2.508 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001093/1.796, allocations: 55.98 kB / 0.6865 GB, free: 2.453 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.776e-05/1.796, allocations: 12 kB / 0.6865 GB, free: 2.441 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.67e-05/1.796, allocations: 11.95 kB / 0.6865 GB, free: 2.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3645/2.16, allocations: 24.24 MB / 0.7102 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.996e-05/2.16, allocations: 6.469 kB / 0.7102 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003408/2.164, allocations: 0.5768 MB / 0.7108 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02114/2.185, allocations: 4.813 MB / 0.7155 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001137/2.186, allocations: 61.39 kB / 0.7155 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04201/2.228, allocations: 20.91 MB / 0.736 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.211e-05/2.228, allocations: 7.875 kB / 0.736 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05903/2.287, allocations: 16.99 MB / 0.7526 GB, free: 94.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002987/2.29, allocations: 0.5319 MB / 0.7531 GB, free: 94.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002499/2.293, allocations: 52 kB / 0.7531 GB, free: 93.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006162/2.299, allocations: 255.6 kB / 0.7534 GB, free: 93.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001564/2.301, allocations: 193.3 kB / 0.7535 GB, free: 93.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005211/2.301, allocations: 83.66 kB / 0.7536 GB, free: 93.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009516/2.311, allocations: 3.424 MB / 0.757 GB, free: 90.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.052e-06/2.311, allocations: 0 / 0.757 GB, free: 90.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01564/2.326, allocations: 1.709 MB / 0.7586 GB, free: 88.35 MB / 446.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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.05743/2.384, allocations: 17.67 MB / 0.7759 GB, free: 70.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.04062/2.425, allocations: 15.26 MB / 0.7908 GB, free: 55.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.105e-05/2.425, allocations: 0 / 0.7908 GB, free: 55.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009895/2.435, allocations: 4.001 MB / 0.7947 GB, free: 51.61 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007507/2.442, allocations: 0.6475 MB / 0.7953 GB, free: 50.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.537/2.979, allocations: 98.25 MB / 0.8913 GB, free: 115.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008847/2.988, allocations: 4.623 MB / 0.8958 GB, free: 114.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.01137/3, allocations: 2.98 MB / 0.8987 GB, free: 114 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006501/3.006, allocations: 2.919 MB / 0.9016 GB, free: 111.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.613e-06/3.006, allocations: 3.938 kB / 0.9016 GB, free: 111.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6241/3.63, allocations: 130.5 MB / 1.029 GB, free: 146.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.84/24.47, allocations: 8.094 kB / 1.029 GB, free: 146.5 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_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_Fourbar2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches