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.001146/0.001146, allocations: 107.9 kB / 16.92 MB, free: 5.766 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.00112/0.00112, allocations: 191.5 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 45.88 kB / 300.7 MB, free: 5.746 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1089, allocations: 49.44 MB / 350.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01684/0.1258, allocations: 15.02 MB / 365.2 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01065/0.1365, allocations: 4.815 MB / 370 MB, free: 364 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002943/0.1395, allocations: 95.75 kB / 370.1 MB, free: 268 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.193/0.3326, allocations: 3.155 MB / 373.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00684/0.3394, allocations: 2.552 MB / 375.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002455/0.3419, allocations: 0.991 MB / 376.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01077/0.3527, allocations: 6.969 MB / 383.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005743/0.3585, allocations: 4.334 MB / 388.1 MB, free: 6.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004258/0.3628, allocations: 2.215 MB / 390.3 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004602/0.3674, allocations: 3.243 MB / 393.6 MB, free: 3.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001278/0.3687, allocations: 487.8 kB / 394 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00319/0.3719, allocations: 1.495 MB / 395.5 MB, free: 3.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002239/0.3742, allocations: 2.86 MB / 398.4 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003805/0.378, allocations: 3.311 MB / 401.7 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01103/0.389, allocations: 10.2 MB / 411.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.3891, allocations: 4 kB / 411.9 MB, free: 3.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3891, allocations: 0 / 411.9 MB, free: 3.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002949/0.3894, allocations: 0 / 411.9 MB, free: 3.383 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.01568/0.4051, allocations: 7.482 MB / 419.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.4051, allocations: 12.03 kB / 419.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001754/0.4069, allocations: 1.145 MB / 420.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04245/0.4494, allocations: 7.503 MB / 428 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/0.4601, allocations: 4.791 MB / 432.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003234/0.4605, allocations: 315.6 kB / 433.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001658/0.4622, allocations: 440 kB / 433.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02793/0.4901, allocations: 15.61 MB / 449.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000213/0.4904, allocations: 67.45 kB / 449.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001097/0.4915, allocations: 203.8 kB / 449.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004707/0.4962, allocations: 3.216 MB / 452.7 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02369/0.5199, allocations: 13.9 MB / 466.6 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07624/0.5962, allocations: 57.38 MB / 0.5117 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0138/0.61, allocations: 6.487 MB / 0.518 GB, free: 10.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004544/0.6146, allocations: 3.565 MB / 0.5215 GB, free: 7.312 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2181/0.8327, allocations: 14.31 MB / 0.5355 GB, free: 142 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.8327, allocations: 64.95 kB / 0.5355 GB, free: 142 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.521e-06/0.8328, allocations: 0 / 0.5355 GB, free: 142 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1368/0.9696, allocations: 41.61 MB / 0.5761 GB, free: 121.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/0.9697, allocations: 217.9 kB / 0.5764 GB, free: 120.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006278/0.976, allocations: 5.491 MB / 0.5817 GB, free: 115.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009235/0.9769, allocations: 69.64 kB / 0.5818 GB, free: 115.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00222/0.9791, allocations: 4.418 MB / 0.5861 GB, free: 110.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/0.9805, allocations: 1.246 MB / 0.5873 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002111/0.9826, allocations: 1.776 MB / 0.5891 GB, free: 107.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.617e-05/0.9826, allocations: 305.1 kB / 0.5893 GB, free: 107.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004768/0.9874, allocations: 4.616 MB / 0.5938 GB, free: 102.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006509/0.9939, allocations: 9.595 MB / 0.6032 GB, free: 90.89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01298/1.007, allocations: 15.26 MB / 0.6181 GB, free: 73.17 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.516e-05/1.007, allocations: 48 kB / 0.6182 GB, free: 73.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03712/1.044, allocations: 18.95 MB / 0.6367 GB, free: 54.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001197/1.044, allocations: 80 kB / 0.6367 GB, free: 54.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001988/1.045, allocations: 172 kB / 0.6369 GB, free: 53.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02112/1.066, allocations: 5.784 MB / 0.6426 GB, free: 48.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006532/1.072, allocations: 2.047 MB / 0.6446 GB, free: 46.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02661/1.099, allocations: 25.65 MB / 0.6696 GB, free: 20.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006824/1.106, allocations: 0.5422 MB / 0.6701 GB, free: 19.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001134/1.107, allocations: 0.5151 MB / 0.6706 GB, free: 19.03 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.004634/1.112, allocations: 3.086 MB / 0.6737 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/1.113, allocations: 0.4974 MB / 0.6741 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02898/1.142, allocations: 12.6 MB / 0.6865 GB, free: 2.754 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001017/1.142, allocations: 59.47 kB / 0.6865 GB, free: 2.699 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.09e-05/1.142, allocations: 12 kB / 0.6865 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.997e-05/1.142, allocations: 19.94 kB / 0.6865 GB, free: 2.668 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2512/1.393, allocations: 24.24 MB / 0.7102 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.28e-05/1.393, allocations: 9.344 kB / 0.7102 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003002/1.396, allocations: 0.575 MB / 0.7108 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01876/1.415, allocations: 4.814 MB / 0.7155 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007134/1.416, allocations: 55.66 kB / 0.7155 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02178/1.438, allocations: 20.91 MB / 0.736 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/1.438, allocations: 7.75 kB / 0.736 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03093/1.469, allocations: 16.99 MB / 0.7526 GB, free: 94.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/1.47, allocations: 0.5264 MB / 0.7531 GB, free: 94.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001081/1.471, allocations: 55.59 kB / 0.7531 GB, free: 94.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002985/1.474, allocations: 261.4 kB / 0.7534 GB, free: 94.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007223/1.475, allocations: 190.2 kB / 0.7536 GB, free: 93.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002392/1.475, allocations: 80 kB / 0.7536 GB, free: 93.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004093/1.479, allocations: 3.428 MB / 0.757 GB, free: 90.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.479, allocations: 0 / 0.757 GB, free: 90.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006629/1.486, allocations: 1.709 MB / 0.7586 GB, free: 88.71 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.03048/1.516, allocations: 17.66 MB / 0.7759 GB, free: 71.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01976/1.536, allocations: 15.25 MB / 0.7908 GB, free: 55.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/1.536, allocations: 384 / 0.7908 GB, free: 55.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004824/1.541, allocations: 4.015 MB / 0.7947 GB, free: 51.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003746/1.545, allocations: 0.6396 MB / 0.7953 GB, free: 51.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3411/1.886, allocations: 98.24 MB / 0.8913 GB, free: 116.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005182/1.891, allocations: 4.627 MB / 0.8958 GB, free: 114.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006698/1.898, allocations: 2.983 MB / 0.8987 GB, free: 114.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004096/1.902, allocations: 2.926 MB / 0.9016 GB, free: 111.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.814e-06/1.902, allocations: 0 / 0.9016 GB, free: 111.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3403/2.242, allocations: 130.4 MB / 1.029 GB, free: 147.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/14.37, allocations: 9.781 kB / 1.029 GB, free: 147.2 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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