Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_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.001573/0.001572, allocations: 104 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.001759/0.001759, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.879/1.879, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001554/0.001554, allocations: 52.14 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1056, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.02184/0.1275, allocations: 15.06 MB / 342.4 MB, free: 5.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01444/0.142, allocations: 4.835 MB / 347.3 MB, free: 384 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003926/0.146, allocations: 91.75 kB / 347.4 MB, free: 292 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007888/0.1541, allocations: 3.161 MB / 350.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007828/0.1619, allocations: 2.556 MB / 353.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002668/0.1646, allocations: 0.9905 MB / 354.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01099/0.1756, allocations: 6.648 MB / 360.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006404/0.1821, allocations: 4.354 MB / 365.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00473/0.1869, allocations: 2.231 MB / 367.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00602/0.193, allocations: 3.244 MB / 370.6 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001939/0.195, allocations: 488 kB / 371 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003989/0.199, allocations: 1.482 MB / 372.5 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003693/0.2027, allocations: 2.868 MB / 375.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005315/0.208, allocations: 3.324 MB / 378.7 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2474/0.4555, allocations: 10.23 MB / 388.9 MB, free: 20.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.42e-05/0.4556, allocations: 0 / 388.9 MB, free: 20.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.4556, allocations: 1.406 kB / 388.9 MB, free: 20.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006652/0.4563, allocations: 0 / 388.9 MB, free: 20.61 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.04157/0.4978, allocations: 7.509 MB / 396.4 MB, free: 17.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.96e-05/0.498, allocations: 13.12 kB / 396.5 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007617/0.5056, allocations: 1.13 MB / 397.6 MB, free: 17.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04865/0.5543, allocations: 7.516 MB / 405.1 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01324/0.5676, allocations: 5.119 MB / 410.2 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004613/0.5681, allocations: 315.3 kB / 410.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003366/0.5715, allocations: 433.3 kB / 411 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.034/0.6055, allocations: 15.61 MB / 426.6 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002418/0.6058, allocations: 66.89 kB / 426.6 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001625/0.6075, allocations: 204.3 kB / 426.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006109/0.6136, allocations: 3.22 MB / 430.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03473/0.6484, allocations: 13.9 MB / 444 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1182/0.7666, allocations: 57.41 MB / 0.4896 GB, free: 5.004 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01771/0.7844, allocations: 6.488 MB / 0.4959 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006714/0.7912, allocations: 3.563 MB / 0.4994 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03464/0.8259, allocations: 14.33 MB / 0.5134 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.618e-05/0.826, allocations: 64.56 kB / 0.5135 GB, free: 11.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=286): time 7.755e-06/0.826, allocations: 0 / 0.5135 GB, free: 11.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=336): time 0.478/1.304, allocations: 41.71 MB / 0.5542 GB, free: 139.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/1.304, allocations: 215.2 kB / 0.5544 GB, free: 139.6 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0173/1.322, allocations: 5.525 MB / 0.5598 GB, free: 134.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001207/1.323, allocations: 73.7 kB / 0.5599 GB, free: 134.1 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004588/1.327, allocations: 4.423 MB / 0.5642 GB, free: 129.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00274/1.33, allocations: 1.246 MB / 0.5654 GB, free: 128.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009868/1.34, allocations: 1.776 MB / 0.5671 GB, free: 126.6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.476e-05/1.34, allocations: 305.1 kB / 0.5674 GB, free: 126.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01146/1.352, allocations: 4.616 MB / 0.5719 GB, free: 121.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01564/1.367, allocations: 9.602 MB / 0.5813 GB, free: 109.7 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02539/1.393, allocations: 15.25 MB / 0.5962 GB, free: 91.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002983/1.393, allocations: 48 kB / 0.5963 GB, free: 91.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.05137/1.445, allocations: 18.96 MB / 0.6148 GB, free: 72.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000385/1.445, allocations: 84.41 kB / 0.6149 GB, free: 72.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004836/1.446, allocations: 172 kB / 0.615 GB, free: 72.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0411/1.487, allocations: 5.784 MB / 0.6207 GB, free: 66.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01441/1.501, allocations: 2.047 MB / 0.6227 GB, free: 64.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05899/1.56, allocations: 25.66 MB / 0.6477 GB, free: 38.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01605/1.576, allocations: 0.5461 MB / 0.6483 GB, free: 38.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003511/1.58, allocations: 0.5094 MB / 0.6488 GB, free: 37.83 MB / 430.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.01367/1.594, allocations: 3.102 MB / 0.6518 GB, free: 34.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002852/1.597, allocations: 0.4974 MB / 0.6523 GB, free: 34.21 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05795/1.655, allocations: 12.59 MB / 0.6646 GB, free: 21.54 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001207/1.655, allocations: 52.62 kB / 0.6646 GB, free: 21.49 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-05/1.655, allocations: 12 kB / 0.6646 GB, free: 21.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.504e-05/1.655, allocations: 15.94 kB / 0.6646 GB, free: 21.46 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.387/2.042, allocations: 24.27 MB / 0.6883 GB, free: 133 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.057e-05/2.042, allocations: 7.188 kB / 0.6884 GB, free: 133 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003568/2.046, allocations: 0.5735 MB / 0.6889 GB, free: 133 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02093/2.067, allocations: 4.807 MB / 0.6936 GB, free: 132.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001236/2.068, allocations: 54.44 kB / 0.6937 GB, free: 132.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03675/2.105, allocations: 20.91 MB / 0.7141 GB, free: 121.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.931e-05/2.105, allocations: 15.92 kB / 0.7141 GB, free: 121.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06209/2.167, allocations: 16.99 MB / 0.7307 GB, free: 104.9 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005737/2.173, allocations: 1.224 MB / 0.7319 GB, free: 103.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002955/2.176, allocations: 57.95 kB / 0.7319 GB, free: 103.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005613/2.181, allocations: 255.6 kB / 0.7322 GB, free: 103.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001566/2.183, allocations: 196.2 kB / 0.7324 GB, free: 103.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009592/2.184, allocations: 87.98 kB / 0.7324 GB, free: 103.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.009234/2.193, allocations: 3.444 MB / 0.7358 GB, free: 99.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.92e-07/2.193, allocations: 0 / 0.7358 GB, free: 99.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01259/2.206, allocations: 1.704 MB / 0.7375 GB, free: 98.25 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 (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.05563/2.261, allocations: 17.66 MB / 0.7547 GB, free: 80.73 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0385/2.3, allocations: 15.25 MB / 0.7696 GB, free: 65.56 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.367e-05/2.3, allocations: 0 / 0.7696 GB, free: 65.56 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006914/2.307, allocations: 4.017 MB / 0.7735 GB, free: 61.53 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00825/2.315, allocations: 0.6528 MB / 0.7742 GB, free: 60.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5443/2.86, allocations: 98.61 MB / 0.8705 GB, free: 126.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01918/2.879, allocations: 4.634 MB / 0.875 GB, free: 124.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0169/2.896, allocations: 2.979 MB / 0.8779 GB, free: 123.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01123/2.907, allocations: 2.921 MB / 0.8808 GB, free: 120.9 MB / 446.1 MB Notification: Performance of SimCode: time 2.444e-06/2.907, allocations: 3.938 kB / 0.8808 GB, free: 120.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6421/3.549, allocations: 130.8 MB / 1.008 GB, free: 142.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.73/25.28, allocations: 8.859 kB / 1.008 GB, free: 142.3 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches