Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.001426/0.001426, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001544/0.001544, allocations: 194.7 kB / 24.49 MB, free: 3.941 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.342/1.342, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.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.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 43.94 kB / 371.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2227, allocations: 52.19 MB / 423.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01503/0.2378, allocations: 11.72 MB / 435.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009592/0.2474, allocations: 4.612 MB / 439.7 MB, free: 14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.2491, allocations: 107.4 kB / 439.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007588/0.2567, allocations: 4.07 MB / 443.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004955/0.2617, allocations: 2.218 MB / 446.1 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002393/0.2641, allocations: 1.115 MB / 447.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007711/0.2718, allocations: 5.984 MB / 453.2 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004584/0.2764, allocations: 4.077 MB / 457.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002877/0.2792, allocations: 2.193 MB / 459.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003952/0.2832, allocations: 3.085 MB / 462.5 MB, free: 7.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00078/0.284, allocations: 500 kB / 463 MB, free: 6.551 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002481/0.2865, allocations: 1.557 MB / 464.6 MB, free: 4.992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002415/0.2889, allocations: 2.676 MB / 467.3 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002432/0.2913, allocations: 2.238 MB / 469.5 MB, free: 60 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009949/0.3013, allocations: 9.745 MB / 479.2 MB, free: 6.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/0.3013, allocations: 4 kB / 479.2 MB, free: 6.273 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3013, allocations: 0 / 479.2 MB, free: 6.273 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002017/0.3015, allocations: 0 / 479.2 MB, free: 6.273 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01224/0.3137, allocations: 6.295 MB / 485.5 MB, free: 15.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.3137, allocations: 12.03 kB / 485.6 MB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001813/0.3139, allocations: 151.3 kB / 485.7 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001428/0.3154, allocations: 0.9327 MB / 486.6 MB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03664/0.352, allocations: 6.055 MB / 492.7 MB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009665/0.3617, allocations: 4.421 MB / 497.1 MB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002546/0.3619, allocations: 315.9 kB / 497.4 MB, free: 3.934 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009362/0.3628, allocations: 435.8 kB / 497.8 MB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02024/0.3831, allocations: 12.4 MB / 0.4983 GB, free: 6.352 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001185/0.3832, allocations: 51.59 kB / 0.4983 GB, free: 6.301 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004509/0.3837, allocations: 191.9 kB / 0.4985 GB, free: 6.113 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003135/0.3868, allocations: 2.042 MB / 0.5005 GB, free: 4.066 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01905/0.4059, allocations: 10.37 MB / 0.5106 GB, free: 9.688 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.236/0.6419, allocations: 41.63 MB / 0.5513 GB, free: 79.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01037/0.6522, allocations: 4.28 MB / 0.5555 GB, free: 78.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001794/0.654, allocations: 1.844 MB / 0.5573 GB, free: 78.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008/0.662, allocations: 5.631 MB / 0.5628 GB, free: 75.85 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.6621, allocations: 56.56 kB / 0.5628 GB, free: 75.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=181): time 4.459e-06/0.6621, allocations: 0 / 0.5628 GB, free: 75.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=225): time 0.05381/0.7159, allocations: 19.34 MB / 0.5817 GB, free: 59.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.7159, allocations: 205.3 kB / 0.5819 GB, free: 58.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004176/0.7201, allocations: 4.503 MB / 0.5863 GB, free: 54.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001843/0.7203, allocations: 61.7 kB / 0.5864 GB, free: 54.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001298/0.7216, allocations: 3.696 MB / 0.59 GB, free: 50.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004843/0.7221, allocations: 0.8733 MB / 0.5908 GB, free: 50.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00114/0.7232, allocations: 1.286 MB / 0.5921 GB, free: 48.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.508e-05/0.7233, allocations: 305.1 kB / 0.5924 GB, free: 48.47 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002301/0.7256, allocations: 2.226 MB / 0.5946 GB, free: 46.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003486/0.729, allocations: 6.032 MB / 0.6004 GB, free: 38.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006285/0.7353, allocations: 8.908 MB / 0.6091 GB, free: 27.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.573e-05/0.7354, allocations: 40 kB / 0.6092 GB, free: 27.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.01145/0.7468, allocations: 9.053 MB / 0.618 GB, free: 18.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.554e-05/0.7469, allocations: 60 kB / 0.6181 GB, free: 18.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-05/0.747, allocations: 139.9 kB / 0.6182 GB, free: 18.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003086/0.75, allocations: 1.199 MB / 0.6194 GB, free: 17.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003331/0.7534, allocations: 1.426 MB / 0.6208 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00819/0.7616, allocations: 7.809 MB / 0.6284 GB, free: 7.859 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003524/0.7651, allocations: 339.6 kB / 0.6287 GB, free: 7.527 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003579/0.7655, allocations: 387.3 kB / 0.6291 GB, free: 7.152 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 764 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002488/0.7679, allocations: 2.482 MB / 0.6315 GB, free: 4.656 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004566/0.7684, allocations: 433.1 kB / 0.6319 GB, free: 4.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006041/0.7744, allocations: 3.871 MB / 0.6357 GB, free: 348 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-05/0.7745, allocations: 24 kB / 0.6357 GB, free: 324 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/0.7745, allocations: 8 kB / 0.6357 GB, free: 316 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.7745, allocations: 7.969 kB / 0.6357 GB, free: 308 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01785/0.7923, allocations: 9.571 MB / 0.6451 GB, free: 6.633 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/0.7923, allocations: 4.594 kB / 0.6451 GB, free: 6.629 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001425/0.7938, allocations: 335.5 kB / 0.6454 GB, free: 6.301 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003348/0.7971, allocations: 0.9878 MB / 0.6464 GB, free: 5.309 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001806/0.7973, allocations: 43.94 kB / 0.6464 GB, free: 5.266 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009744/0.807, allocations: 6.511 MB / 0.6528 GB, free: 14.64 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.316e-06/0.8071, allocations: 12 kB / 0.6528 GB, free: 14.63 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01107/0.8181, allocations: 6.628 MB / 0.6593 GB, free: 7.926 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.8192, allocations: 396.9 kB / 0.6596 GB, free: 7.535 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004341/0.8196, allocations: 47.98 kB / 0.6597 GB, free: 7.488 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001489/0.8211, allocations: 103.9 kB / 0.6598 GB, free: 7.387 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003531/0.8214, allocations: 157 kB / 0.6599 GB, free: 7.234 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/0.8216, allocations: 60 kB / 0.66 GB, free: 7.176 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00401/0.8256, allocations: 2.832 MB / 0.6628 GB, free: 4.344 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8256, allocations: 480 / 0.6628 GB, free: 4.344 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004356/0.83, allocations: 1.183 MB / 0.6639 GB, free: 3.164 MB / 478.1 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 (175): * Single equations (assignments): 171 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01145/0.8414, allocations: 7.34 MB / 0.6711 GB, free: 11.74 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008325/0.8497, allocations: 5.326 MB / 0.6763 GB, free: 6.43 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.8497, allocations: 0 / 0.6763 GB, free: 6.43 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002542/0.8523, allocations: 1.707 MB / 0.678 GB, free: 4.711 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002812/0.8551, allocations: 0.556 MB / 0.6785 GB, free: 4.156 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08081/0.9359, allocations: 51.6 MB / 0.7289 GB, free: 10.59 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004474/0.9404, allocations: 3.362 MB / 0.7322 GB, free: 7.188 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004412/0.9448, allocations: 1.942 MB / 0.7341 GB, free: 5.238 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002987/0.9478, allocations: 2.311 MB / 0.7363 GB, free: 2.926 MB / 0.545 GB Notification: Performance of SimCode: time 7.51e-07/0.9478, allocations: 0 / 0.7363 GB, free: 2.926 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2911/1.239, allocations: 87.64 MB / 0.8219 GB, free: 134.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.81/23.05, allocations: 12.05 kB / 0.8219 GB, free: 134.2 MB / 0.545 GB " [Timeout remaining time 637] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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: 27.056998476036824]