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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005219/0.005219, allocations: 162 kB / 24.69 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8798/0.8798, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.44e-05/2.576e-05, allocations: 2.281 kB / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.1408/0.1408, allocations: 13.1 MB / 311.5 MB, free: 8.402 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00857/0.1494, allocations: 4.625 MB / 316.2 MB, free: 5.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002592/0.152, allocations: 112.3 kB / 316.3 MB, free: 5.445 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004323/0.1563, allocations: 3.255 MB / 319.5 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005888/0.1622, allocations: 2.73 MB / 322.3 MB, free: 2.551 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.1641, allocations: 1.108 MB / 323.4 MB, free: 1.797 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007363/0.1715, allocations: 7.333 MB / 330.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005412/0.1769, allocations: 4.125 MB / 334.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005743/0.1826, allocations: 3.406 MB / 338.2 MB, free: 6.812 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004797/0.1874, allocations: 3.593 MB / 341.8 MB, free: 3.211 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001256/0.1887, allocations: 497.6 kB / 342.3 MB, free: 2.723 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002593/0.1913, allocations: 1.486 MB / 343.8 MB, free: 1.234 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00274/0.194, allocations: 3.101 MB / 346.9 MB, free: 14.12 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003077/0.1971, allocations: 1.939 MB / 348.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.2077, allocations: 10.78 MB / 359.6 MB, free: 1.367 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.2077, allocations: 0 / 359.6 MB, free: 1.367 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2077, allocations: 0 / 359.6 MB, free: 1.367 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003113/0.208, allocations: 0 / 359.6 MB, free: 1.367 MB / 314.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.01406/0.2221, allocations: 7.684 MB / 367.3 MB, free: 9.605 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.2221, allocations: 11.98 kB / 367.3 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002232/0.2243, allocations: 1.137 MB / 368.5 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02206/0.2464, allocations: 7.985 MB / 376.4 MB, free: 452 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007674/0.2541, allocations: 4.611 MB / 381.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002007/0.2543, allocations: 320.4 kB / 381.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001287/0.2556, allocations: 436.4 kB / 381.8 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01924/0.2748, allocations: 15.7 MB / 397.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001452/0.2749, allocations: 59.56 kB / 397.5 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004809/0.2754, allocations: 207.7 kB / 397.7 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003031/0.2785, allocations: 3.216 MB / 401 MB, free: 6.906 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01993/0.2984, allocations: 13.9 MB / 414.9 MB, free: 8.988 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0569/0.3553, allocations: 54.93 MB / 469.8 MB, free: 0.6172 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1489/0.5042, allocations: 5.443 MB / 475.2 MB, free: 133.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003677/0.5078, allocations: 3.227 MB / 478.5 MB, free: 132.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01607/0.5239, allocations: 12.07 MB / 490.5 MB, free: 127.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.973e-05/0.5239, allocations: 60.47 kB / 490.6 MB, free: 127.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.993e-06/0.524, allocations: 2.125 kB / 490.6 MB, free: 127.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.07654/0.6005, allocations: 43.05 MB / 0.5211 GB, free: 96.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.6006, allocations: 214 kB / 0.5213 GB, free: 96.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005807/0.6064, allocations: 6.262 MB / 0.5275 GB, free: 89.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006801/0.607, allocations: 73.7 kB / 0.5275 GB, free: 89.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001365/0.6084, allocations: 4.562 MB / 0.532 GB, free: 85.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009674/0.6094, allocations: 1.28 MB / 0.5332 GB, free: 84.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001463/0.6108, allocations: 1.766 MB / 0.535 GB, free: 82.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 2.935e-05/0.6109, allocations: 301.1 kB / 0.5352 GB, free: 82.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003735/0.6146, allocations: 4.616 MB / 0.5397 GB, free: 77.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005177/0.6198, allocations: 9.645 MB / 0.5492 GB, free: 65.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/0.6314, allocations: 15.25 MB / 0.5641 GB, free: 47.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001617/0.6316, allocations: 52 kB / 0.5641 GB, free: 47.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.02642/0.658, allocations: 18.96 MB / 0.5826 GB, free: 28.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.174e-05/0.6581, allocations: 76 kB / 0.5827 GB, free: 28.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001444/0.6582, allocations: 180 kB / 0.5829 GB, free: 28.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01185/0.6701, allocations: 5.779 MB / 0.5885 GB, free: 22.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004973/0.6751, allocations: 2.047 MB / 0.5905 GB, free: 20.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02096/0.696, allocations: 25.28 MB / 0.6152 GB, free: 11.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006266/0.7023, allocations: 0.6125 MB / 0.6158 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001663/0.7039, allocations: 0.5065 MB / 0.6163 GB, free: 9.949 MB / 442.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.161/0.865, allocations: 3.088 MB / 0.6193 GB, free: 132.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001454/0.8664, allocations: 0.524 MB / 0.6198 GB, free: 132.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02018/0.8866, allocations: 12.58 MB / 0.6321 GB, free: 129.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-05/0.8867, allocations: 51.78 kB / 0.6322 GB, free: 129.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.827e-05/0.8867, allocations: 13.62 kB / 0.6322 GB, free: 129.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.811e-05/0.8868, allocations: 15.83 kB / 0.6322 GB, free: 129.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03345/0.9202, allocations: 23.17 MB / 0.6548 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.423e-05/0.9203, allocations: 3.875 kB / 0.6548 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/0.9221, allocations: 0.5751 MB / 0.6554 GB, free: 120.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01003/0.9322, allocations: 4.807 MB / 0.6601 GB, free: 118.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007008/0.9329, allocations: 58.92 kB / 0.6601 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01558/0.9484, allocations: 20.57 MB / 0.6802 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.9484, allocations: 14.78 kB / 0.6802 GB, free: 100 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01939/0.9678, allocations: 16.98 MB / 0.6968 GB, free: 83.19 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002618/0.9704, allocations: 1.242 MB / 0.698 GB, free: 82.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000947/0.9714, allocations: 55.66 kB / 0.6981 GB, free: 82.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001991/0.9734, allocations: 319.2 kB / 0.6984 GB, free: 81.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005037/0.9739, allocations: 205.4 kB / 0.6986 GB, free: 81.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001808/0.9741, allocations: 87.98 kB / 0.6987 GB, free: 81.61 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003956/0.978, allocations: 3.776 MB / 0.7023 GB, free: 77.85 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.978, allocations: 0 / 0.7023 GB, free: 77.85 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005672/0.9837, allocations: 1.862 MB / 0.7042 GB, free: 76 MB / 442.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.01919/1.003, allocations: 17.66 MB / 0.7214 GB, free: 58.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009848/1.013, allocations: 10.19 MB / 0.7314 GB, free: 48.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/1.013, allocations: 0 / 0.7314 GB, free: 48.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003747/1.016, allocations: 3.71 MB / 0.735 GB, free: 44.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/1.02, allocations: 0.6598 MB / 0.7356 GB, free: 43.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.222/1.242, allocations: 87.7 MB / 0.8213 GB, free: 126.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003605/1.245, allocations: 4.133 MB / 0.8253 GB, free: 125.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004411/1.25, allocations: 2.998 MB / 0.8282 GB, free: 125 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002851/1.252, allocations: 2.936 MB / 0.8311 GB, free: 122.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.674e-06/1.252, allocations: 3.656 kB / 0.8311 GB, free: 122.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2683/1.521, allocations: 130.4 MB / 0.9585 GB, free: 142.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/14.09, allocations: 11.14 kB / 0.9585 GB, free: 142.7 MB / 458.7 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 16.273161932826042]