Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001317/0.001317, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001359/0.001359, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.394/1.394, allocations: 230.6 MB / 258.3 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 43.94 kB / 378.6 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.2191, allocations: 53.36 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01651/0.2356, allocations: 15.08 MB / 447 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009793/0.2454, allocations: 4.87 MB / 451.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001964/0.2474, allocations: 107.5 kB / 452 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005795/0.2532, allocations: 3.224 MB / 455.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006757/0.2599, allocations: 2.602 MB / 457.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002497/0.2624, allocations: 0.9788 MB / 458.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01049/0.2729, allocations: 7.061 MB / 465.8 MB, free: 4.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005952/0.2789, allocations: 3.57 MB / 469.4 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004295/0.2832, allocations: 2.262 MB / 471.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00554/0.2887, allocations: 3.501 MB / 475.2 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001732/0.2904, allocations: 488 kB / 475.6 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004025/0.2945, allocations: 1.541 MB / 477.2 MB, free: 9.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004384/0.2988, allocations: 2.929 MB / 480.1 MB, free: 6.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005885/0.3047, allocations: 3.281 MB / 483.4 MB, free: 3.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01494/0.3197, allocations: 10.54 MB / 493.9 MB, free: 8.559 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.3197, allocations: 0 / 493.9 MB, free: 8.559 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3197, allocations: 4 kB / 493.9 MB, free: 8.555 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003618/0.32, allocations: 0 / 493.9 MB, free: 8.555 MB / 398.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.0194/0.3394, allocations: 7.548 MB / 0.4897 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.3395, allocations: 12.03 kB / 0.4898 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002188/0.3397, allocations: 169 kB / 0.4899 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002948/0.3427, allocations: 1.145 MB / 0.491 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04487/0.3875, allocations: 7.551 MB / 0.4984 GB, free: 8.02 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01091/0.3984, allocations: 4.579 MB / 0.5029 GB, free: 3.387 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003334/0.3988, allocations: 324 kB / 0.5032 GB, free: 3.066 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0017/0.4005, allocations: 435.7 kB / 0.5036 GB, free: 2.641 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02926/0.4297, allocations: 15.63 MB / 0.5189 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000279/0.43, allocations: 59.47 kB / 0.5189 GB, free: 2.027 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001524/0.4315, allocations: 207.8 kB / 0.5191 GB, free: 1.824 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005442/0.437, allocations: 3.219 MB / 0.5223 GB, free: 14.6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02737/0.4643, allocations: 13.92 MB / 0.5359 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2312/0.6955, allocations: 57.02 MB / 0.5915 GB, free: 49.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01092/0.7065, allocations: 5.283 MB / 0.5967 GB, free: 43.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003455/0.7099, allocations: 3.224 MB / 0.5998 GB, free: 40.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01809/0.728, allocations: 12.32 MB / 0.6119 GB, free: 28.42 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.7281, allocations: 64.5 kB / 0.6119 GB, free: 28.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 6.061e-06/0.7281, allocations: 0 / 0.6119 GB, free: 28.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1373/0.8654, allocations: 41.77 MB / 0.6527 GB, free: 2.895 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/0.8655, allocations: 217.9 kB / 0.6529 GB, free: 2.637 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008406/0.8739, allocations: 5.491 MB / 0.6583 GB, free: 13.27 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006818/0.8746, allocations: 73.7 kB / 0.6584 GB, free: 13.19 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003462/0.8781, allocations: 4.6 MB / 0.6629 GB, free: 8.648 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001657/0.8797, allocations: 1.298 MB / 0.6641 GB, free: 7.34 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002641/0.8824, allocations: 1.79 MB / 0.6659 GB, free: 5.535 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.8825, allocations: 313 kB / 0.6662 GB, free: 5.227 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006531/0.889, allocations: 4.62 MB / 0.6707 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01054/0.8996, allocations: 9.587 MB / 0.6801 GB, free: 4.559 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01939/0.919, allocations: 15.26 MB / 0.695 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001443/0.9191, allocations: 52 kB / 0.695 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04594/0.965, allocations: 18.95 MB / 0.7135 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001714/0.9652, allocations: 80 kB / 0.7136 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002561/0.9655, allocations: 174.6 kB / 0.7138 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02308/0.9885, allocations: 5.777 MB / 0.7194 GB, free: 9.742 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007063/0.9956, allocations: 2.047 MB / 0.7214 GB, free: 7.691 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2217/1.217, allocations: 25.44 MB / 0.7462 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006983/1.224, allocations: 0.5466 MB / 0.7468 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001483/1.226, allocations: 0.5026 MB / 0.7473 GB, free: 184.7 MB / 0.545 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.005094/1.231, allocations: 3.09 MB / 0.7503 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.232, allocations: 0.5227 MB / 0.7508 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02733/1.259, allocations: 12.56 MB / 0.7631 GB, free: 180.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-05/1.259, allocations: 60 kB / 0.7631 GB, free: 180.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.628e-05/1.259, allocations: 11.88 kB / 0.7631 GB, free: 180.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-05/1.259, allocations: 11.25 kB / 0.7631 GB, free: 180.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0436/1.303, allocations: 24.14 MB / 0.7867 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.053e-05/1.303, allocations: 8 kB / 0.7867 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00291/1.306, allocations: 0.5748 MB / 0.7873 GB, free: 165.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0177/1.324, allocations: 4.806 MB / 0.792 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007432/1.324, allocations: 55.75 kB / 0.792 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02059/1.345, allocations: 20.71 MB / 0.8123 GB, free: 140.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/1.345, allocations: 16.12 kB / 0.8123 GB, free: 140.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03014/1.375, allocations: 16.98 MB / 0.8289 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/1.376, allocations: 494.2 kB / 0.8293 GB, free: 122.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/1.378, allocations: 59.52 kB / 0.8294 GB, free: 122.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003039/1.381, allocations: 259.5 kB / 0.8296 GB, free: 122.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007842/1.381, allocations: 197.5 kB / 0.8298 GB, free: 122.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002728/1.382, allocations: 80 kB / 0.8299 GB, free: 122.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004402/1.386, allocations: 3.422 MB / 0.8332 GB, free: 119 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.386, allocations: 4 kB / 0.8332 GB, free: 119 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007943/1.394, allocations: 1.684 MB / 0.8349 GB, free: 117.3 MB / 0.545 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.03142/1.425, allocations: 17.65 MB / 0.8521 GB, free: 99.51 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01338/1.439, allocations: 10.18 MB / 0.8621 GB, free: 89.38 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.439, allocations: 0 / 0.8621 GB, free: 89.38 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00481/1.444, allocations: 3.713 MB / 0.8657 GB, free: 85.67 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004099/1.448, allocations: 0.6566 MB / 0.8663 GB, free: 85.04 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3199/1.768, allocations: 86.21 MB / 0.9505 GB, free: 203.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006784/1.775, allocations: 4.619 MB / 0.955 GB, free: 202.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006932/1.781, allocations: 2.986 MB / 0.9579 GB, free: 202.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004558/1.786, allocations: 2.916 MB / 0.9608 GB, free: 202 MB / 0.5606 GB Notification: Performance of SimCode: time 1.312e-06/1.786, allocations: 0 / 0.9608 GB, free: 202 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1884/1.974, allocations: 130.1 MB / 1.088 GB, free: 84.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.58/41.55, allocations: 3.938 kB / 1.088 GB, free: 84.19 MB / 0.5606 GB " [Timeout remaining time 618] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 45.581789051007945]