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.001836/0.001836, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.002046/0.002045, allocations: 197.3 kB / 18.01 MB, free: 5.062 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.397/1.397, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 43.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2457, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01729/0.263, allocations: 15.03 MB / 415.3 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.2744, allocations: 4.818 MB / 420.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002211/0.2766, allocations: 91.75 kB / 420.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006242/0.2829, allocations: 3.161 MB / 423.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006932/0.2899, allocations: 2.559 MB / 425.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002474/0.2924, allocations: 0.9866 MB / 426.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.3027, allocations: 6.969 MB / 433.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005951/0.3087, allocations: 4.333 MB / 438.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004411/0.3132, allocations: 2.227 MB / 440.4 MB, free: 484 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005446/0.3186, allocations: 3.232 MB / 443.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001551/0.3202, allocations: 487.9 kB / 444.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003747/0.324, allocations: 1.498 MB / 445.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003598/0.3276, allocations: 2.86 MB / 448.5 MB, free: 8.387 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005167/0.3328, allocations: 3.316 MB / 451.8 MB, free: 5.051 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01508/0.3479, allocations: 10.62 MB / 462.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.348, allocations: 0 / 462.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.348, allocations: 0 / 462.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003483/0.3483, allocations: 0 / 462.4 MB, free: 10.39 MB / 382.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.02054/0.3689, allocations: 7.662 MB / 470.1 MB, free: 2.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/0.369, allocations: 8.031 kB / 470.1 MB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00261/0.3716, allocations: 1.137 MB / 471.2 MB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04549/0.4171, allocations: 7.551 MB / 478.8 MB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01136/0.4285, allocations: 4.874 MB / 483.6 MB, free: 4.969 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003301/0.4289, allocations: 328.2 kB / 484 MB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001874/0.4307, allocations: 427.7 kB / 484.4 MB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03061/0.4614, allocations: 15.61 MB / 500 MB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002201/0.4616, allocations: 63.45 kB / 0.4883 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00116/0.4628, allocations: 207.8 kB / 0.4885 GB, free: 3.426 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005591/0.4684, allocations: 3.216 MB / 0.4917 GB, free: 212 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02851/0.4969, allocations: 13.91 MB / 0.5052 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2831/0.7801, allocations: 57.2 MB / 0.5611 GB, free: 90.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/0.7921, allocations: 6.481 MB / 0.5674 GB, free: 88.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003656/0.7958, allocations: 3.561 MB / 0.5709 GB, free: 87.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01665/0.8124, allocations: 14.33 MB / 0.5849 GB, free: 79.27 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/0.8125, allocations: 65.03 kB / 0.585 GB, free: 79.21 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 6.412e-06/0.8125, allocations: 3.781 kB / 0.585 GB, free: 79.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.1333/0.9458, allocations: 41.94 MB / 0.6259 GB, free: 38.72 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.9459, allocations: 217.4 kB / 0.6261 GB, free: 38.47 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005866/0.9518, allocations: 5.507 MB / 0.6315 GB, free: 33.09 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006545/0.9525, allocations: 73.7 kB / 0.6316 GB, free: 33.01 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0019/0.9544, allocations: 4.6 MB / 0.6361 GB, free: 28.69 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001325/0.9557, allocations: 1.296 MB / 0.6373 GB, free: 27.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002229/0.958, allocations: 1.788 MB / 0.6391 GB, free: 25.61 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.695e-05/0.958, allocations: 305.1 kB / 0.6394 GB, free: 25.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005147/0.9632, allocations: 4.616 MB / 0.6439 GB, free: 20.68 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007404/0.9706, allocations: 9.6 MB / 0.6533 GB, free: 8.703 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0178/0.9884, allocations: 15.25 MB / 0.6682 GB, free: 7.016 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001563/0.9886, allocations: 56 kB / 0.6682 GB, free: 6.961 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04798/1.037, allocations: 18.98 MB / 0.6867 GB, free: 3.93 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001208/1.037, allocations: 80 kB / 0.6868 GB, free: 3.852 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002061/1.037, allocations: 176.1 kB / 0.687 GB, free: 3.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02418/1.061, allocations: 5.771 MB / 0.6926 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007484/1.069, allocations: 2.051 MB / 0.6946 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03673/1.105, allocations: 25.66 MB / 0.7197 GB, free: 1.918 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007529/1.113, allocations: 0.5414 MB / 0.7202 GB, free: 1.379 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/1.114, allocations: 0.5019 MB / 0.7207 GB, free: 0.8789 MB / 0.5137 GB 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.005576/1.12, allocations: 3.094 MB / 0.7237 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001114/1.121, allocations: 0.52 MB / 0.7242 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03262/1.154, allocations: 12.6 MB / 0.7365 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.666e-05/1.154, allocations: 55.98 kB / 0.7366 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.01e-05/1.154, allocations: 12 kB / 0.7366 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.686e-05/1.154, allocations: 11.95 kB / 0.7366 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2591/1.413, allocations: 24.19 MB / 0.7602 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-05/1.413, allocations: 7.875 kB / 0.7602 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002876/1.416, allocations: 0.571 MB / 0.7608 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01814/1.434, allocations: 4.814 MB / 0.7655 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007405/1.435, allocations: 63.41 kB / 0.7656 GB, free: 180.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02213/1.457, allocations: 20.91 MB / 0.786 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/1.457, allocations: 8 kB / 0.786 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03083/1.488, allocations: 17.02 MB / 0.8026 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001543/1.49, allocations: 0.5551 MB / 0.8031 GB, free: 143 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001447/1.491, allocations: 55.94 kB / 0.8032 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003294/1.494, allocations: 263.3 kB / 0.8035 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007962/1.495, allocations: 195.1 kB / 0.8036 GB, free: 142.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002713/1.496, allocations: 84 kB / 0.8037 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004325/1.5, allocations: 3.424 MB / 0.8071 GB, free: 139 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.3e-07/1.5, allocations: 2.438 kB / 0.8071 GB, free: 139 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007131/1.507, allocations: 1.707 MB / 0.8087 GB, free: 137.3 MB / 0.5294 GB 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.03085/1.538, allocations: 17.68 MB / 0.826 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01376/1.552, allocations: 10.63 MB / 0.8364 GB, free: 109 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/1.552, allocations: 0 / 0.8364 GB, free: 109 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00492/1.557, allocations: 4.021 MB / 0.8403 GB, free: 105 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003871/1.561, allocations: 0.6583 MB / 0.841 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1298/1.69, allocations: 86.14 MB / 0.9251 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2179/1.908, allocations: 4.619 MB / 0.9296 GB, free: 186.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007206/1.916, allocations: 2.988 MB / 0.9325 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003753/1.919, allocations: 2.916 MB / 0.9354 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of SimCode: time 7.12e-07/1.919, allocations: 0 / 0.9354 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1545/2.074, allocations: 125.4 MB / 1.058 GB, free: 76.13 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.8/42.87, allocations: 9.672 kB / 1.058 GB, free: 76.13 MB / 0.5294 GB (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