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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009081/0.0009081, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8649/0.8649, allocations: 173.4 MB / 200.5 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.552e-06/1.552e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.682e-05/1.837e-05, allocations: 2.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0095/0.009519, allocations: 13.06 MB / 331.5 MB, free: 9.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007703/0.01722, allocations: 4.616 MB / 336.1 MB, free: 4.602 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002032/0.01925, allocations: 115.4 kB / 336.2 MB, free: 4.488 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003553/0.02281, allocations: 3.246 MB / 339.5 MB, free: 1.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004846/0.02765, allocations: 2.732 MB / 342.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001768/0.02942, allocations: 1.092 MB / 343.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006992/0.03641, allocations: 7.67 MB / 351 MB, free: 5.707 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004339/0.04075, allocations: 4.105 MB / 355.1 MB, free: 1.535 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007543/0.04829, allocations: 3.387 MB / 358.5 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003808/0.0521, allocations: 3.589 MB / 362 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008217/0.05292, allocations: 496 kB / 362.5 MB, free: 10.06 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001845/0.05477, allocations: 1.486 MB / 364 MB, free: 8.57 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002176/0.05695, allocations: 3.089 MB / 367.1 MB, free: 5.473 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00175/0.0587, allocations: 1.931 MB / 369 MB, free: 3.535 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008496/0.06719, allocations: 10.75 MB / 379.8 MB, free: 8.746 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.0672, allocations: 0 / 379.8 MB, free: 8.746 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.0672, allocations: 0 / 379.8 MB, free: 8.746 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002436/0.06744, allocations: 4 kB / 379.8 MB, free: 8.742 MB / 346.7 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.0111/0.07854, allocations: 7.653 MB / 387.4 MB, free: 1.012 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.07859, allocations: 8.922 kB / 387.5 MB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001316/0.07991, allocations: 1.133 MB / 388.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02125/0.1012, allocations: 7.989 MB / 396.6 MB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007264/0.1084, allocations: 4.263 MB / 400.8 MB, free: 3.535 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.1086, allocations: 324.4 kB / 401.2 MB, free: 3.215 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001275/0.1099, allocations: 436.2 kB / 401.6 MB, free: 2.789 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.019/0.1289, allocations: 15.7 MB / 417.3 MB, free: 2.145 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/0.129, allocations: 59.5 kB / 417.3 MB, free: 2.086 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006232/0.1296, allocations: 203.8 kB / 417.5 MB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002956/0.1326, allocations: 3.216 MB / 420.8 MB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02124/0.1538, allocations: 13.88 MB / 434.6 MB, free: 0.7617 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2259/0.3797, allocations: 54.79 MB / 489.4 MB, free: 75.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007918/0.3876, allocations: 5.469 MB / 494.9 MB, free: 73.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002907/0.3906, allocations: 3.225 MB / 498.1 MB, free: 72.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01309/0.4036, allocations: 12 MB / 0.4982 GB, free: 62.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.4037, allocations: 64.55 kB / 0.4982 GB, free: 62.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 5.951e-06/0.4037, allocations: 3.156 kB / 0.4982 GB, free: 62.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.07404/0.4777, allocations: 42.83 MB / 0.5401 GB, free: 20.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.4778, allocations: 217.9 kB / 0.5403 GB, free: 20.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00516/0.4829, allocations: 6.148 MB / 0.5463 GB, free: 14.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007236/0.4837, allocations: 73.7 kB / 0.5463 GB, free: 14.15 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001476/0.4851, allocations: 4.559 MB / 0.5508 GB, free: 9.727 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001176/0.4863, allocations: 1.284 MB / 0.552 GB, free: 8.461 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001611/0.4879, allocations: 1.766 MB / 0.5538 GB, free: 6.684 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.322e-05/0.4879, allocations: 304.6 kB / 0.5541 GB, free: 6.387 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003605/0.4916, allocations: 4.616 MB / 0.5586 GB, free: 1.762 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006321/0.4979, allocations: 9.645 MB / 0.568 GB, free: 5.652 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01325/0.5111, allocations: 15.26 MB / 0.5829 GB, free: 3.926 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/0.5112, allocations: 48 kB / 0.5829 GB, free: 3.879 MB / 442.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.02755/0.5388, allocations: 18.95 MB / 0.6014 GB, free: 0.8828 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.553e-05/0.5389, allocations: 88.05 kB / 0.6015 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001612/0.539, allocations: 175.9 kB / 0.6017 GB, free: 0.625 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01238/0.5514, allocations: 5.777 MB / 0.6073 GB, free: 10.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004892/0.5563, allocations: 2.051 MB / 0.6093 GB, free: 8.785 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1798/0.7361, allocations: 25.27 MB / 0.634 GB, free: 152.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005015/0.7411, allocations: 0.604 MB / 0.6346 GB, free: 152.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009638/0.7421, allocations: 0.5051 MB / 0.6351 GB, free: 152.2 MB / 474.7 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.004183/0.7463, allocations: 3.088 MB / 0.6381 GB, free: 151.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/0.7473, allocations: 0.5231 MB / 0.6386 GB, free: 151.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.016/0.7633, allocations: 12.57 MB / 0.6509 GB, free: 145.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.187e-05/0.7633, allocations: 55.89 kB / 0.651 GB, free: 145.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-05/0.7634, allocations: 15.94 kB / 0.651 GB, free: 145.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.004e-05/0.7634, allocations: 15.89 kB / 0.651 GB, free: 145.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02797/0.7914, allocations: 23.15 MB / 0.6736 GB, free: 122 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.005e-05/0.7914, allocations: 4 kB / 0.6736 GB, free: 122 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002148/0.7936, allocations: 0.5705 MB / 0.6742 GB, free: 121.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009607/0.8032, allocations: 4.808 MB / 0.6788 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005869/0.8038, allocations: 56 kB / 0.6789 GB, free: 116.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0154/0.8192, allocations: 20.57 MB / 0.699 GB, free: 95.94 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.8192, allocations: 4 kB / 0.699 GB, free: 95.94 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02016/0.8393, allocations: 16.98 MB / 0.7156 GB, free: 79.11 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.8408, allocations: 0.5377 MB / 0.7161 GB, free: 78.72 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007075/0.8415, allocations: 52 kB / 0.7162 GB, free: 78.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.8432, allocations: 311.3 kB / 0.7164 GB, free: 78.37 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004982/0.8437, allocations: 201.5 kB / 0.7166 GB, free: 78.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/0.8438, allocations: 80 kB / 0.7167 GB, free: 78.09 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003785/0.8476, allocations: 3.701 MB / 0.7203 GB, free: 74.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.8476, allocations: 6 kB / 0.7203 GB, free: 74.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005423/0.8531, allocations: 1.856 MB / 0.7221 GB, free: 72.57 MB / 474.7 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.01983/0.8729, allocations: 17.66 MB / 0.7394 GB, free: 54.76 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01081/0.8837, allocations: 10.18 MB / 0.7493 GB, free: 44.61 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/0.8837, allocations: 1.938 kB / 0.7493 GB, free: 44.61 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003699/0.8874, allocations: 3.718 MB / 0.753 GB, free: 40.88 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00366/0.8911, allocations: 0.6432 MB / 0.7536 GB, free: 40.25 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2519/1.143, allocations: 87.23 MB / 0.8388 GB, free: 121.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004029/1.147, allocations: 4.125 MB / 0.8428 GB, free: 117.8 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004307/1.151, allocations: 2.995 MB / 0.8457 GB, free: 114.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002747/1.154, allocations: 2.937 MB / 0.8486 GB, free: 112 MB / 474.7 MB Notification: Performance of SimCode: time 2.144e-06/1.154, allocations: 0 / 0.8486 GB, free: 112 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2688/1.423, allocations: 129.7 MB / 0.9753 GB, free: 150.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/12.86, allocations: 7.422 kB / 0.9753 GB, free: 150.5 MB / 474.7 MB " [Timeout remaining time 647] (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 --stepSize=0.0009996 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.104257664643228]