Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0009671/0.0009671, 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.0009145/0.0009145, 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.91/0.91, allocations: 173.4 MB / 200.5 MB, free: 9.422 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.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.969e-05/2.131e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01008/0.0101, allocations: 13.79 MB / 332.2 MB, free: 8.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007881/0.01798, allocations: 4.943 MB / 337.2 MB, free: 3.543 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002375/0.02036, allocations: 139.2 kB / 337.3 MB, free: 3.406 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004853/0.02521, allocations: 4.559 MB / 341.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005634/0.03084, allocations: 2.69 MB / 344.5 MB, free: 12.12 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002108/0.03295, allocations: 1.271 MB / 345.8 MB, free: 10.85 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008013/0.04096, allocations: 8.964 MB / 354.8 MB, free: 1.863 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005084/0.04605, allocations: 5.07 MB / 359.9 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004578/0.05063, allocations: 3.812 MB / 363.7 MB, free: 8.891 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004396/0.05502, allocations: 3.753 MB / 367.4 MB, free: 5.129 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001311/0.05633, allocations: 0.5195 MB / 367.9 MB, free: 4.609 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002732/0.05907, allocations: 1.467 MB / 369.4 MB, free: 3.141 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002502/0.06157, allocations: 3.226 MB / 372.6 MB, free: 15.91 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002269/0.06384, allocations: 2.099 MB / 374.7 MB, free: 13.8 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.07423, allocations: 10.77 MB / 385.5 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.07424, allocations: 0 / 385.5 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.925e-06/0.07424, allocations: 3.938 kB / 385.5 MB, free: 2.992 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003894/0.07463, allocations: 7.938 kB / 385.5 MB, free: 2.984 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01588/0.09051, allocations: 8.121 MB / 393.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.09056, allocations: 16.92 kB / 393.7 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001919/0.09248, allocations: 1.082 MB / 394.7 MB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02754/0.12, allocations: 9.051 MB / 403.8 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008901/0.1289, allocations: 4.975 MB / 408.8 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.1291, allocations: 337.1 kB / 409.1 MB, free: 11.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001212/0.1303, allocations: 468 kB / 409.5 MB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01929/0.1496, allocations: 14.55 MB / 424.1 MB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002211/0.1499, allocations: 75.47 kB / 424.2 MB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005289/0.1504, allocations: 211.8 kB / 424.4 MB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003152/0.1535, allocations: 2.832 MB / 427.2 MB, free: 8.145 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02036/0.1739, allocations: 12.96 MB / 440.2 MB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2119/0.3858, allocations: 55.61 MB / 495.8 MB, free: 76.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009211/0.395, allocations: 7.062 MB / 0.4911 GB, free: 70.18 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003257/0.3982, allocations: 4.549 MB / 0.4955 GB, free: 65.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01128/0.4095, allocations: 11.83 MB / 0.5071 GB, free: 53.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.4096, allocations: 64.7 kB / 0.5071 GB, free: 53.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=326): time 5.901e-06/0.4096, allocations: 0 / 0.5071 GB, free: 53.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=572): time 1.179/1.588, allocations: 413.5 MB / 0.9109 GB, free: 61.84 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/1.589, allocations: 261.7 kB / 0.9112 GB, free: 61.53 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007365/1.596, allocations: 6.276 MB / 0.9173 GB, free: 55.45 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002213/1.598, allocations: 113.7 kB / 0.9174 GB, free: 55.33 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00203/1.6, allocations: 4.126 MB / 0.9215 GB, free: 51.62 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0029/1.603, allocations: 2.058 MB / 0.9235 GB, free: 49.59 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003001/1.606, allocations: 2.057 MB / 0.9255 GB, free: 47.52 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 3.636e-05/1.606, allocations: 305.1 kB / 0.9258 GB, free: 47.22 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00942/1.615, allocations: 10.87 MB / 0.9364 GB, free: 36.34 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.011/1.626, allocations: 15.07 MB / 0.9511 GB, free: 19.31 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1884/1.815, allocations: 27.12 MB / 0.9776 GB, free: 141.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-05/1.815, allocations: 38.53 kB / 0.9776 GB, free: 141.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.1815/1.996, allocations: 140.1 MB / 1.114 GB, free: 13.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.073e-05/1.997, allocations: 67.94 kB / 1.114 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-05/1.997, allocations: 136 kB / 1.115 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2188/2.215, allocations: 34.55 MB / 1.148 GB, free: 138.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003156/2.219, allocations: 1.477 MB / 1.15 GB, free: 138.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3427/2.561, allocations: 200.8 MB / 1.346 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009601/2.571, allocations: 1.799 MB / 1.348 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001409/2.572, allocations: 0.5168 MB / 1.348 GB, free: 113.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.004361/2.577, allocations: 3.092 MB / 1.351 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001502/2.578, allocations: 0.6091 MB / 1.352 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3395/2.918, allocations: 136.1 MB / 1.485 GB, free: 133.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.388e-05/2.918, allocations: 59.97 kB / 1.485 GB, free: 133.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001198/2.918, allocations: 64.59 kB / 1.485 GB, free: 133.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.452e-05/2.918, allocations: 26.2 kB / 1.485 GB, free: 133.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4079/3.326, allocations: 202.9 MB / 1.683 GB, free: 141.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.97e-05/3.326, allocations: 10.56 kB / 1.683 GB, free: 141.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/3.327, allocations: 323.5 kB / 1.683 GB, free: 141.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04213/3.369, allocations: 33.27 MB / 1.716 GB, free: 118.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00206/3.371, allocations: 99.98 kB / 1.716 GB, free: 118.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3289/3.7, allocations: 183.6 MB / 1.895 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/3.7, allocations: 10.34 kB / 1.895 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3777/4.078, allocations: 151.9 MB / 2.043 GB, free: 131.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001948/4.08, allocations: 0.6644 MB / 2.044 GB, free: 131.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001934/4.082, allocations: 94.25 kB / 2.044 GB, free: 131.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005362/4.087, allocations: 1.558 MB / 2.046 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00281/4.09, allocations: 0.5172 MB / 2.046 GB, free: 129.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004956/4.09, allocations: 147.1 kB / 2.046 GB, free: 129.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004162/4.094, allocations: 3.941 MB / 2.05 GB, free: 126.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.71e-07/4.094, allocations: 2.719 kB / 2.05 GB, free: 126.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01166/4.106, allocations: 4.074 MB / 2.054 GB, free: 122.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.3865/4.493, allocations: 152.4 MB / 2.203 GB, free: 142.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03777/4.53, allocations: 32.57 MB / 2.235 GB, free: 115 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/4.53, allocations: 7.938 kB / 2.235 GB, free: 115 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02565/4.556, allocations: 19.53 MB / 2.254 GB, free: 95.58 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007324/4.563, allocations: 0.8374 MB / 2.255 GB, free: 94.77 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.809/5.372, allocations: 354.6 MB / 2.601 GB, free: 80.58 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006169/5.378, allocations: 4.611 MB / 2.606 GB, free: 76.75 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003606/5.382, allocations: 2.088 MB / 2.608 GB, free: 74.79 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003286/5.385, allocations: 3.047 MB / 2.611 GB, free: 74.28 MB / 490.7 MB Notification: Performance of SimCode: time 1.993e-06/5.385, allocations: 0 / 2.611 GB, free: 74.28 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6197/6.005, allocations: 348 MB / 2.95 GB, free: 92.66 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.71/22.71, allocations: 11.7 kB / 2.95 GB, free: 92.66 MB / 0.4948 GB " [Timeout remaining time 637] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: 25.54505967721343]