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.001556/0.001556, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001755/0.001755, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.443/1.443, allocations: 230.6 MB / 254.1 MB, free: 15.08 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1079, allocations: 53.33 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2287/0.3367, allocations: 15.03 MB / 441.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009808/0.3465, allocations: 4.848 MB / 446.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002889/0.3494, allocations: 107.9 kB / 446.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007201/0.3566, allocations: 3.205 MB / 449.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008343/0.3649, allocations: 2.591 MB / 452.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003068/0.368, allocations: 0.9895 MB / 453.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01193/0.3799, allocations: 7.044 MB / 460.1 MB, free: 9.617 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006796/0.3867, allocations: 3.696 MB / 463.8 MB, free: 7.301 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005237/0.3919, allocations: 2.25 MB / 466.1 MB, free: 6.039 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006013/0.398, allocations: 3.522 MB / 469.6 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001823/0.3998, allocations: 485.6 kB / 470.1 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004173/0.404, allocations: 1.532 MB / 471.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004502/0.4085, allocations: 2.927 MB / 474.5 MB, free: 500 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00598/0.4144, allocations: 3.285 MB / 477.8 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0158/0.4302, allocations: 10.54 MB / 488.4 MB, free: 2.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.4303, allocations: 8 kB / 488.4 MB, free: 2.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4303, allocations: 0 / 488.4 MB, free: 2.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003534/0.4306, allocations: 0 / 488.4 MB, free: 2.59 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01987/0.4505, allocations: 7.62 MB / 496 MB, free: 10.87 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.4505, allocations: 12.03 kB / 496 MB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002918/0.4534, allocations: 1.138 MB / 497.1 MB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.045/0.4984, allocations: 7.547 MB / 0.4928 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01132/0.5098, allocations: 4.667 MB / 0.4974 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003354/0.5101, allocations: 320.4 kB / 0.4977 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00169/0.5118, allocations: 435.6 kB / 0.4981 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02983/0.5416, allocations: 15.61 MB / 0.5134 GB, free: 12.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000235/0.5419, allocations: 55.58 kB / 0.5134 GB, free: 12.08 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001158/0.543, allocations: 203.8 kB / 0.5136 GB, free: 11.88 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005798/0.5488, allocations: 3.223 MB / 0.5168 GB, free: 8.656 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0288/0.5776, allocations: 13.91 MB / 0.5303 GB, free: 10.73 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08558/0.6632, allocations: 57.18 MB / 0.5862 GB, free: 44 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01522/0.6784, allocations: 6.19 MB / 0.5922 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005301/0.6837, allocations: 3.212 MB / 0.5954 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02577/0.7095, allocations: 14.32 MB / 0.6094 GB, free: 7.504 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.28e-05/0.7095, allocations: 60.56 kB / 0.6094 GB, free: 7.434 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=286): time 6.041e-06/0.7096, allocations: 0 / 0.6094 GB, free: 7.434 MB / 0.5137 GB Notification: Performance of matching and sorting (n=336): time 0.3441/1.054, allocations: 41.91 MB / 0.6503 GB, free: 152.6 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.531e-05/1.054, allocations: 214.9 kB / 0.6506 GB, free: 152.3 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007752/1.061, allocations: 5.494 MB / 0.6559 GB, free: 149.6 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007433/1.062, allocations: 77.08 kB / 0.656 GB, free: 149.6 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002569/1.065, allocations: 4.598 MB / 0.6605 GB, free: 146 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001689/1.066, allocations: 1.298 MB / 0.6617 GB, free: 144.9 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004468/1.071, allocations: 1.787 MB / 0.6635 GB, free: 143.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.499e-05/1.071, allocations: 305.1 kB / 0.6638 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006694/1.078, allocations: 4.622 MB / 0.6683 GB, free: 140.3 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008508/1.086, allocations: 9.592 MB / 0.6777 GB, free: 128.3 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01391/1.1, allocations: 15.25 MB / 0.6926 GB, free: 110.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001633/1.1, allocations: 52 kB / 0.6926 GB, free: 110.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04298/1.143, allocations: 18.96 MB / 0.7111 GB, free: 91.54 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003493/1.144, allocations: 80 kB / 0.7112 GB, free: 91.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003892/1.144, allocations: 176 kB / 0.7114 GB, free: 91.29 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02257/1.167, allocations: 5.77 MB / 0.717 GB, free: 85.51 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00637/1.173, allocations: 2.055 MB / 0.719 GB, free: 83.45 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02761/1.2, allocations: 25.64 MB / 0.7441 GB, free: 57.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009108/1.21, allocations: 0.5501 MB / 0.7446 GB, free: 56.99 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002416/1.212, allocations: 0.5039 MB / 0.7451 GB, free: 56.48 MB / 0.5137 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.00633/1.218, allocations: 3.081 MB / 0.7481 GB, free: 53.39 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001505/1.22, allocations: 0.5253 MB / 0.7486 GB, free: 52.86 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03126/1.251, allocations: 12.57 MB / 0.7609 GB, free: 40.22 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.369e-05/1.251, allocations: 55.98 kB / 0.7609 GB, free: 40.17 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/1.251, allocations: 15.94 kB / 0.761 GB, free: 40.15 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.321e-05/1.251, allocations: 15.94 kB / 0.761 GB, free: 40.14 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0443/1.296, allocations: 24.15 MB / 0.7845 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.906e-05/1.296, allocations: 4.609 kB / 0.7846 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002939/1.299, allocations: 0.5855 MB / 0.7851 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0192/1.318, allocations: 4.802 MB / 0.7898 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007008/1.318, allocations: 56 kB / 0.7899 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02734/1.346, allocations: 20.93 MB / 0.8103 GB, free: 4.859 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/1.346, allocations: 7.938 kB / 0.8103 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2358/1.582, allocations: 16.99 MB / 0.8269 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001602/1.583, allocations: 0.5512 MB / 0.8274 GB, free: 158 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001338/1.584, allocations: 56.5 kB / 0.8275 GB, free: 158 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003435/1.588, allocations: 255.1 kB / 0.8277 GB, free: 158 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008987/1.589, allocations: 188.2 kB / 0.8279 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003234/1.589, allocations: 91.89 kB / 0.828 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005709/1.595, allocations: 3.425 MB / 0.8313 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/1.595, allocations: 3.906 kB / 0.8314 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008502/1.603, allocations: 1.68 MB / 0.833 GB, free: 156.6 MB / 0.5294 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.03754/1.641, allocations: 17.65 MB / 0.8502 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0153/1.656, allocations: 10.18 MB / 0.8602 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/1.656, allocations: 4.406 kB / 0.8602 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00534/1.662, allocations: 3.709 MB / 0.8638 GB, free: 145 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005233/1.667, allocations: 0.6467 MB / 0.8644 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1315/1.798, allocations: 86.05 MB / 0.9485 GB, free: 52.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006377/1.805, allocations: 4.624 MB / 0.953 GB, free: 47.66 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006231/1.811, allocations: 2.976 MB / 0.9559 GB, free: 44.69 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004578/1.815, allocations: 2.917 MB / 0.9587 GB, free: 41.77 MB / 0.5294 GB Notification: Performance of SimCode: time 1.563e-06/1.815, allocations: 0 / 0.9587 GB, free: 41.77 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4242/2.24, allocations: 126.1 MB / 1.082 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.67/40.91, allocations: 19.08 kB / 1.082 GB, free: 159.9 MB / 0.5606 GB " [Timeout remaining time 619] (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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 44.491290299920365]