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.001611/0.001611, allocations: 120.8 kB / 17.79 MB, free: 5.285 MB / 14.72 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.001769/0.001769, allocations: 186.9 kB / 20.73 MB, free: 2.355 MB / 14.72 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 1.415/1.415, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001471/0.001471, allocations: 43.92 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.107, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01787/0.1248, allocations: 15.97 MB / 433.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.1365, allocations: 5.139 MB / 438.9 MB, free: 7.406 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003243/0.1398, allocations: 111.7 kB / 439 MB, free: 7.297 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009026/0.1488, allocations: 4.501 MB / 443.5 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007783/0.1566, allocations: 2.602 MB / 446.1 MB, free: 176 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2268/0.3834, allocations: 1.148 MB / 447.3 MB, free: 7.742 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0104/0.3938, allocations: 7.959 MB / 455.2 MB, free: 7.723 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006064/0.3998, allocations: 4.535 MB / 459.8 MB, free: 7.348 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004939/0.4048, allocations: 2.478 MB / 462.2 MB, free: 7.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005303/0.4101, allocations: 3.62 MB / 465.9 MB, free: 6.445 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001604/0.4117, allocations: 0.5065 MB / 466.4 MB, free: 6.441 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003221/0.4149, allocations: 1.538 MB / 467.9 MB, free: 6.258 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00282/0.4177, allocations: 3.067 MB / 471 MB, free: 5.172 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00477/0.4225, allocations: 3.445 MB / 474.4 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.4344, allocations: 10.6 MB / 485 MB, free: 12.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.974e-06/0.4345, allocations: 0 / 485 MB, free: 12.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4345, allocations: 0 / 485 MB, free: 12.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003966/0.4349, allocations: 0 / 485 MB, free: 12.27 MB / 382.1 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.02205/0.4569, allocations: 8.075 MB / 493.1 MB, free: 6.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.457, allocations: 16.03 kB / 493.1 MB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002508/0.4595, allocations: 1.081 MB / 494.2 MB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05025/0.5097, allocations: 8.444 MB / 0.4908 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01571/0.5254, allocations: 5.865 MB / 0.4966 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003261/0.5258, allocations: 341.7 kB / 0.4969 GB, free: 6.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001847/0.5276, allocations: 474.4 kB / 0.4973 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02795/0.5555, allocations: 14.46 MB / 0.5115 GB, free: 7.152 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002513/0.5558, allocations: 75.47 kB / 0.5115 GB, free: 7.105 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000775/0.5566, allocations: 211.2 kB / 0.5117 GB, free: 6.945 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005188/0.5618, allocations: 2.834 MB / 0.5145 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02635/0.5881, allocations: 13.02 MB / 0.5272 GB, free: 7.348 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08426/0.6724, allocations: 58.13 MB / 0.584 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01713/0.6895, allocations: 7.353 MB / 0.5912 GB, free: 4.602 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005972/0.6955, allocations: 4.496 MB / 0.5956 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02634/0.7218, allocations: 12.7 MB / 0.608 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.1e-05/0.7219, allocations: 72.64 kB / 0.608 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=326): time 6.032e-06/0.7219, allocations: 0 / 0.608 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of matching and sorting (n=572): time 1.81/2.532, allocations: 411.2 MB / 1.01 GB, free: 5.262 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.986e-05/2.532, allocations: 273.5 kB / 1.01 GB, free: 4.941 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1812/2.713, allocations: 5.502 MB / 1.015 GB, free: 152.4 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001465/2.715, allocations: 112 kB / 1.015 GB, free: 152.4 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002256/2.717, allocations: 4.154 MB / 1.019 GB, free: 151 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002345/2.72, allocations: 2.098 MB / 1.021 GB, free: 149.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004153/2.724, allocations: 2.082 MB / 1.023 GB, free: 148.7 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.067e-05/2.724, allocations: 301.7 kB / 1.024 GB, free: 148.4 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01507/2.739, allocations: 10.88 MB / 1.034 GB, free: 144.2 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01583/2.755, allocations: 14.99 MB / 1.049 GB, free: 134.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02622/2.781, allocations: 27.12 MB / 1.075 GB, free: 119.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.647e-05/2.781, allocations: 38.03 kB / 1.076 GB, free: 119.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.4868/3.268, allocations: 140.1 MB / 1.212 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.992e-05/3.268, allocations: 63.66 kB / 1.212 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001468/3.268, allocations: 138 kB / 1.213 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.074/3.342, allocations: 34.58 MB / 1.246 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004378/3.346, allocations: 1.476 MB / 1.248 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4319/3.778, allocations: 203.2 MB / 1.446 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01315/3.791, allocations: 1.708 MB / 1.448 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002579/3.794, allocations: 0.5236 MB / 1.448 GB, free: 128.1 MB / 0.5294 GB 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.006872/3.801, allocations: 3.088 MB / 1.451 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001803/3.803, allocations: 0.6108 MB / 1.452 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2805/4.083, allocations: 136.1 MB / 1.585 GB, free: 16.43 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.932e-05/4.083, allocations: 60 kB / 1.585 GB, free: 16.37 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001543/4.083, allocations: 56 kB / 1.585 GB, free: 16.31 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001141/4.084, allocations: 33.16 kB / 1.585 GB, free: 16.28 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5598/4.643, allocations: 205.6 MB / 1.786 GB, free: 23.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.001e-05/4.643, allocations: 4 kB / 1.786 GB, free: 23.24 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001479/4.645, allocations: 335.1 kB / 1.786 GB, free: 22.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2827/4.928, allocations: 33.28 MB / 1.819 GB, free: 157.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001666/4.929, allocations: 98.56 kB / 1.819 GB, free: 157.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2169/5.146, allocations: 185.8 MB / 2 GB, free: 23.73 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/5.146, allocations: 7.094 kB / 2 GB, free: 23.73 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5221/5.668, allocations: 151.9 MB / 2.149 GB, free: 72.71 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001985/5.67, allocations: 0.6603 MB / 2.149 GB, free: 72.23 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003077/5.673, allocations: 98.86 kB / 2.149 GB, free: 72.13 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008933/5.682, allocations: 1.481 MB / 2.151 GB, free: 70.65 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003688/5.686, allocations: 0.4947 MB / 2.151 GB, free: 70.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001045/5.687, allocations: 140 kB / 2.151 GB, free: 70.03 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005455/5.692, allocations: 3.521 MB / 2.155 GB, free: 66.53 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.71e-07/5.692, allocations: 0 / 2.155 GB, free: 66.53 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01467/5.707, allocations: 3.804 MB / 2.158 GB, free: 62.73 MB / 0.545 GB 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.5343/6.241, allocations: 152.4 MB / 2.307 GB, free: 110.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.05111/6.292, allocations: 32.6 MB / 2.339 GB, free: 81 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/6.292, allocations: 6.625 kB / 2.339 GB, free: 81 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03528/6.328, allocations: 19.55 MB / 2.358 GB, free: 61.59 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009369/6.337, allocations: 0.8261 MB / 2.359 GB, free: 60.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.124/7.461, allocations: 352.6 MB / 2.703 GB, free: 106.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007627/7.469, allocations: 5.1 MB / 2.708 GB, free: 101.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004569/7.473, allocations: 2.07 MB / 2.71 GB, free: 99.94 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003554/7.477, allocations: 3.03 MB / 2.713 GB, free: 99.44 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/7.477, allocations: 4 kB / 2.713 GB, free: 99.44 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8515/8.328, allocations: 336.2 MB / 3.042 GB, free: 136.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.33/38.65, allocations: 8.812 kB / 3.042 GB, free: 136.4 MB / 0.545 GB " [Timeout remaining time 621] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 42.962856554891914]