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.001335/0.001335, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 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.001796/0.001796, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 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 1.468/1.468, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 55.92 kB / 347.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.272, allocations: 49.16 MB / 396.4 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01491/0.2869, allocations: 15.15 MB / 411.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01181/0.2987, allocations: 4.883 MB / 416.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003068/0.3018, allocations: 107.7 kB / 416.5 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006834/0.3086, allocations: 3.226 MB / 419.7 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007769/0.3164, allocations: 2.648 MB / 422.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002762/0.3191, allocations: 0.9937 MB / 423.4 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01062/0.3297, allocations: 6.655 MB / 430 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006079/0.3358, allocations: 3.598 MB / 433.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004835/0.3407, allocations: 2.282 MB / 435.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006147/0.3468, allocations: 3.536 MB / 439.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00193/0.3487, allocations: 484 kB / 439.9 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004228/0.353, allocations: 1.533 MB / 441.4 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004596/0.3576, allocations: 2.972 MB / 444.4 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006386/0.3639, allocations: 3.328 MB / 447.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01598/0.3799, allocations: 10.65 MB / 458.4 MB, free: 5.051 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.88e-05/0.3799, allocations: 0 / 458.4 MB, free: 5.051 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3799, allocations: 0 / 458.4 MB, free: 5.051 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003831/0.3803, allocations: 0 / 458.4 MB, free: 5.051 MB / 366.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.02055/0.4009, allocations: 7.61 MB / 466 MB, free: 13.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.4009, allocations: 11.98 kB / 466 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003187/0.4041, allocations: 1.137 MB / 467.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04228/0.4464, allocations: 7.547 MB / 474.7 MB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01207/0.4585, allocations: 5.126 MB / 479.8 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003528/0.4588, allocations: 324.2 kB / 480.1 MB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001583/0.4604, allocations: 435.7 kB / 480.6 MB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03233/0.4927, allocations: 15.61 MB / 496.2 MB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002524/0.493, allocations: 59.52 kB / 496.2 MB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001401/0.4944, allocations: 211.8 kB / 496.4 MB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005704/0.5001, allocations: 3.212 MB / 499.7 MB, free: 10.69 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03295/0.533, allocations: 13.9 MB / 0.5015 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09242/0.6255, allocations: 57.03 MB / 0.5572 GB, free: 2.156 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2054/0.8309, allocations: 5.28 MB / 0.5624 GB, free: 142.4 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005295/0.8362, allocations: 3.228 MB / 0.5655 GB, free: 141.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02618/0.8624, allocations: 12.32 MB / 0.5776 GB, free: 136.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/0.8624, allocations: 57.97 kB / 0.5776 GB, free: 136.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=286): time 6.773e-06/0.8624, allocations: 0 / 0.5776 GB, free: 136.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=336): time 0.1289/0.9913, allocations: 41.9 MB / 0.6185 GB, free: 106.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.86e-05/0.9914, allocations: 213.9 kB / 0.6187 GB, free: 106 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006291/0.9977, allocations: 5.537 MB / 0.6241 GB, free: 100.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007298/0.9984, allocations: 77.14 kB / 0.6242 GB, free: 100.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002028/1, allocations: 4.605 MB / 0.6287 GB, free: 96.24 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001295/1.002, allocations: 1.303 MB / 0.63 GB, free: 94.95 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002158/1.004, allocations: 1.786 MB / 0.6317 GB, free: 93.16 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.302e-05/1.004, allocations: 301.1 kB / 0.632 GB, free: 92.86 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005151/1.009, allocations: 4.616 MB / 0.6365 GB, free: 88.23 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008343/1.017, allocations: 9.604 MB / 0.6459 GB, free: 76.18 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01417/1.032, allocations: 15.25 MB / 0.6608 GB, free: 58.45 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001654/1.032, allocations: 48 kB / 0.6608 GB, free: 58.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03808/1.07, allocations: 18.96 MB / 0.6794 GB, free: 39.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/1.07, allocations: 80.97 kB / 0.6794 GB, free: 39.32 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001666/1.07, allocations: 172 kB / 0.6796 GB, free: 39.15 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01956/1.09, allocations: 5.772 MB / 0.6852 GB, free: 33.37 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006579/1.096, allocations: 2.055 MB / 0.6872 GB, free: 31.31 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02718/1.123, allocations: 25.44 MB / 0.7121 GB, free: 5.637 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007472/1.131, allocations: 0.5492 MB / 0.7126 GB, free: 5.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/1.132, allocations: 0.5 MB / 0.7131 GB, free: 4.59 MB / 478.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.005133/1.137, allocations: 3.098 MB / 0.7161 GB, free: 1.48 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/1.139, allocations: 0.52 MB / 0.7166 GB, free: 0.957 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03297/1.172, allocations: 12.57 MB / 0.7289 GB, free: 4.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001125/1.172, allocations: 55.98 kB / 0.729 GB, free: 4.266 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.814e-05/1.172, allocations: 15.94 kB / 0.729 GB, free: 4.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.601e-05/1.172, allocations: 11.95 kB / 0.729 GB, free: 4.238 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2425/1.414, allocations: 24.15 MB / 0.7526 GB, free: 155.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.378e-05/1.414, allocations: 5.5 kB / 0.7526 GB, free: 155.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002941/1.417, allocations: 0.5802 MB / 0.7531 GB, free: 155.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01783/1.435, allocations: 4.805 MB / 0.7578 GB, free: 154.6 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007422/1.436, allocations: 62.55 kB / 0.7579 GB, free: 154.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02349/1.459, allocations: 20.7 MB / 0.7781 GB, free: 144.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/1.459, allocations: 7.812 kB / 0.7781 GB, free: 144.7 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03157/1.491, allocations: 16.99 MB / 0.7947 GB, free: 135.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003535/1.494, allocations: 1.175 MB / 0.7959 GB, free: 135.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001601/1.496, allocations: 55.98 kB / 0.7959 GB, free: 135 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00371/1.5, allocations: 257.6 kB / 0.7962 GB, free: 134.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009875/1.501, allocations: 205.7 kB / 0.7964 GB, free: 134.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004484/1.501, allocations: 83.98 kB / 0.7964 GB, free: 134.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005912/1.507, allocations: 3.446 MB / 0.7998 GB, free: 131.1 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/1.507, allocations: 0 / 0.7998 GB, free: 131.1 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008327/1.515, allocations: 1.711 MB / 0.8015 GB, free: 129.3 MB / 0.4981 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.03193/1.547, allocations: 17.65 MB / 0.8187 GB, free: 111.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01401/1.561, allocations: 10.19 MB / 0.8287 GB, free: 101.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/1.561, allocations: 0 / 0.8287 GB, free: 101.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004998/1.566, allocations: 3.713 MB / 0.8323 GB, free: 98.03 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005446/1.572, allocations: 0.6489 MB / 0.8329 GB, free: 97.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1379/1.71, allocations: 86.41 MB / 0.9173 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008064/1.718, allocations: 4.635 MB / 0.9218 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.009023/1.727, allocations: 2.989 MB / 0.9247 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006336/1.733, allocations: 2.921 MB / 0.9276 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of SimCode: time 1.412e-06/1.733, allocations: 4 kB / 0.9276 GB, free: 8.793 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4011/2.134, allocations: 130.4 MB / 1.055 GB, free: 75.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.25/45.39, allocations: 4.062 kB / 1.055 GB, free: 75.01 MB / 0.5137 GB " [Timeout remaining time 614] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/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: 48.66658943099901]