Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.001566/0.001566, allocations: 104.5 kB / 17.58 MB, free: 5.441 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.00183/0.00183, allocations: 191.9 kB / 18.51 MB, free: 4.523 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.554/2.554, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001496/0.001496, allocations: 55.92 kB / 280.8 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1532, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.03312/0.1864, allocations: 16.01 MB / 343.4 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0223/0.2087, allocations: 5.14 MB / 348.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006039/0.2148, allocations: 119.6 kB / 348.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01654/0.2315, allocations: 4.446 MB / 353.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01435/0.2459, allocations: 2.54 MB / 355.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005657/0.2516, allocations: 1.166 MB / 356.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02001/0.2717, allocations: 7.492 MB / 364.3 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0135/0.2852, allocations: 5.338 MB / 369.6 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009692/0.295, allocations: 2.484 MB / 372.1 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01099/0.3061, allocations: 3.38 MB / 375.5 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003644/0.3098, allocations: 0.5039 MB / 376 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007193/0.3171, allocations: 1.494 MB / 377.5 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3377/0.6548, allocations: 2.967 MB / 380.5 MB, free: 20.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01603/0.6709, allocations: 3.459 MB / 383.9 MB, free: 19.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0311/0.7021, allocations: 10.31 MB / 394.2 MB, free: 18.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.183e-05/0.7022, allocations: 1 kB / 394.2 MB, free: 18.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.7022, allocations: 0 / 394.2 MB, free: 18.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006187/0.7029, allocations: 0 / 394.2 MB, free: 18.25 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.05534/0.7582, allocations: 7.927 MB / 402.2 MB, free: 15.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.24e-05/0.7583, allocations: 9.469 kB / 402.2 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007213/0.7655, allocations: 1.083 MB / 403.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1055/0.8711, allocations: 8.408 MB / 411.7 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02491/0.8961, allocations: 6.22 MB / 417.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005529/0.8967, allocations: 342.8 kB / 418.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005123/0.9019, allocations: 463.6 kB / 418.7 MB, free: 7.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0519/0.9538, allocations: 14.48 MB / 433.2 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003752/0.9543, allocations: 69.95 kB / 433.2 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001894/0.9562, allocations: 214.3 kB / 433.4 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006621/0.9628, allocations: 2.833 MB / 436.3 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03214/0.995, allocations: 13.01 MB / 449.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1538/1.149, allocations: 58.34 MB / 0.4957 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03399/1.183, allocations: 7.684 MB / 0.5032 GB, free: 7.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009412/1.192, allocations: 5.008 MB / 0.5081 GB, free: 2.211 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02764/1.22, allocations: 12.71 MB / 0.5205 GB, free: 5.434 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.944e-05/1.22, allocations: 67.89 kB / 0.5206 GB, free: 5.359 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 6.603e-06/1.22, allocations: 0 / 0.5206 GB, free: 5.359 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 3.777/4.997, allocations: 411.3 MB / 0.9223 GB, free: 99.12 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001617/4.998, allocations: 261.7 kB / 0.9225 GB, free: 98.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01584/5.013, allocations: 5.557 MB / 0.928 GB, free: 94.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.003/5.016, allocations: 110.6 kB / 0.9281 GB, free: 94.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004551/5.021, allocations: 4.021 MB / 0.932 GB, free: 90.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004788/5.026, allocations: 2.001 MB / 0.9339 GB, free: 88.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01361/5.039, allocations: 2.073 MB / 0.936 GB, free: 86.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.074e-05/5.04, allocations: 301.1 kB / 0.9363 GB, free: 86.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02284/5.062, allocations: 10.88 MB / 0.9469 GB, free: 75.47 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02839/5.091, allocations: 14.99 MB / 0.9615 GB, free: 58.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0511/5.142, allocations: 27.12 MB / 0.988 GB, free: 29.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001824/5.142, allocations: 40 kB / 0.988 GB, free: 29.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.9866/6.129, allocations: 140.4 MB / 1.125 GB, free: 44.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004512/6.129, allocations: 64 kB / 1.125 GB, free: 44.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004714/6.13, allocations: 136 kB / 1.125 GB, free: 44.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.5939/6.724, allocations: 34.6 MB / 1.159 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009578/6.734, allocations: 1.482 MB / 1.161 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.8834/7.617, allocations: 203.2 MB / 1.359 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02089/7.638, allocations: 1.7 MB / 1.361 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005482/7.644, allocations: 0.5288 MB / 1.361 GB, free: 109.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.02192/7.666, allocations: 3.098 MB / 1.364 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005696/7.671, allocations: 0.584 MB / 1.365 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.7931/8.465, allocations: 136.4 MB / 1.498 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001609/8.465, allocations: 60.05 kB / 1.498 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003787/8.465, allocations: 64.88 kB / 1.498 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002171/8.465, allocations: 33.78 kB / 1.498 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8459/9.311, allocations: 206.2 MB / 1.7 GB, free: 97.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001048/9.311, allocations: 8 kB / 1.7 GB, free: 97.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002778/9.314, allocations: 330.1 kB / 1.7 GB, free: 97.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1215/9.436, allocations: 33.32 MB / 1.732 GB, free: 69.47 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004172/9.44, allocations: 100 kB / 1.732 GB, free: 69.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6835/10.12, allocations: 185.8 MB / 1.914 GB, free: 46.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/10.12, allocations: 8.375 kB / 1.914 GB, free: 46.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.9903/11.11, allocations: 152.2 MB / 2.063 GB, free: 57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01396/11.13, allocations: 3.006 MB / 2.066 GB, free: 54.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006151/11.13, allocations: 99.98 kB / 2.066 GB, free: 54.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02008/11.15, allocations: 1.478 MB / 2.067 GB, free: 52.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008326/11.16, allocations: 0.49 MB / 2.068 GB, free: 52.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003264/11.17, allocations: 146.9 kB / 2.068 GB, free: 52.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01392/11.18, allocations: 3.561 MB / 2.071 GB, free: 48.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.492e-06/11.18, allocations: 0 / 2.071 GB, free: 48.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.03085/11.21, allocations: 3.796 MB / 2.075 GB, free: 44.76 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.9824/12.19, allocations: 152.7 MB / 2.224 GB, free: 56.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1002/12.29, allocations: 38.69 MB / 2.262 GB, free: 17.85 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-05/12.29, allocations: 2.344 kB / 2.262 GB, free: 17.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.4327/12.73, allocations: 20.49 MB / 2.282 GB, free: 126.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01515/12.74, allocations: 0.8409 MB / 2.283 GB, free: 126.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 2.231/14.97, allocations: 371.5 MB / 2.645 GB, free: 118 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0224/15, allocations: 5.112 MB / 2.65 GB, free: 115.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.01267/15.01, allocations: 2.075 MB / 2.652 GB, free: 114.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01089/15.02, allocations: 3.032 MB / 2.655 GB, free: 114.1 MB / 462.1 MB Notification: Performance of SimCode: time 2.585e-06/15.02, allocations: 3.562 kB / 2.655 GB, free: 114.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.53/16.55, allocations: 338.7 MB / 2.986 GB, free: 106 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 29.56/46.11, allocations: 7.656 kB / 2.986 GB, free: 106 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_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_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches