Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001797/0.001797, allocations: 121.4 kB / 17.79 MB, free: 5.121 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.00205/0.00205, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.393/1.393, allocations: 225.6 MB / 249.1 MB, free: 3.625 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.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 51.92 kB / 365.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09777/0.09918, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01751/0.1167, allocations: 15.09 MB / 432.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.1267, allocations: 4.846 MB / 437.7 MB, free: 8.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002018/0.1288, allocations: 95.75 kB / 437.8 MB, free: 8.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006076/0.1348, allocations: 3.204 MB / 441 MB, free: 5.285 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00629/0.1411, allocations: 2.63 MB / 443.6 MB, free: 2.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.1433, allocations: 0.9827 MB / 444.6 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2248/0.3681, allocations: 6.966 MB / 451.6 MB, free: 7.426 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004575/0.3726, allocations: 3.703 MB / 455.3 MB, free: 7.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00438/0.377, allocations: 2.228 MB / 457.5 MB, free: 6.926 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006643/0.3837, allocations: 3.522 MB / 461 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001781/0.3854, allocations: 484 kB / 461.5 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003513/0.3889, allocations: 1.546 MB / 463.1 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003021/0.392, allocations: 2.96 MB / 466 MB, free: 6.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004454/0.3964, allocations: 3.313 MB / 469.3 MB, free: 4.332 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01096/0.4074, allocations: 10.63 MB / 480 MB, free: 14.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.4074, allocations: 0 / 480 MB, free: 14.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4074, allocations: 0 / 480 MB, free: 14.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002445/0.4076, allocations: 0 / 480 MB, free: 14.82 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.01731/0.4249, allocations: 7.659 MB / 487.6 MB, free: 9.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.425, allocations: 11.34 kB / 487.6 MB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002053/0.427, allocations: 1.137 MB / 488.8 MB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04018/0.4672, allocations: 7.551 MB / 496.3 MB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01262/0.4798, allocations: 4.886 MB / 0.4895 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002695/0.4801, allocations: 321.1 kB / 0.4898 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001377/0.4815, allocations: 427.6 kB / 0.4902 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02783/0.5093, allocations: 15.61 MB / 0.5054 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001852/0.5095, allocations: 58.67 kB / 0.5055 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006053/0.5101, allocations: 207 kB / 0.5057 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005185/0.5153, allocations: 3.221 MB / 0.5088 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02791/0.5432, allocations: 13.9 MB / 0.5224 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08484/0.628, allocations: 57.2 MB / 0.5783 GB, free: 2.266 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01528/0.6433, allocations: 6.191 MB / 0.5843 GB, free: 11.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005349/0.6487, allocations: 3.219 MB / 0.5874 GB, free: 8.609 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02705/0.6757, allocations: 14.33 MB / 0.6014 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.269e-05/0.6758, allocations: 60.5 kB / 0.6015 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=286): time 5.581e-06/0.6758, allocations: 0 / 0.6015 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=336): time 0.3295/1.005, allocations: 41.92 MB / 0.6424 GB, free: 163.2 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.646e-05/1.005, allocations: 219.5 kB / 0.6426 GB, free: 163 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008292/1.014, allocations: 5.501 MB / 0.648 GB, free: 161.1 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007811/1.014, allocations: 67.08 kB / 0.6481 GB, free: 161 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002598/1.017, allocations: 4.604 MB / 0.6526 GB, free: 157.5 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001558/1.019, allocations: 1.306 MB / 0.6538 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002807/1.021, allocations: 1.785 MB / 0.6556 GB, free: 155.7 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.879e-05/1.021, allocations: 305.1 kB / 0.6559 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006019/1.027, allocations: 4.621 MB / 0.6604 GB, free: 153.7 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007131/1.035, allocations: 9.595 MB / 0.6698 GB, free: 145.5 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0138/1.048, allocations: 15.25 MB / 0.6847 GB, free: 134.1 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001382/1.049, allocations: 52.16 kB / 0.6847 GB, free: 134.1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03738/1.086, allocations: 18.96 MB / 0.7032 GB, free: 116.7 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.312e-05/1.086, allocations: 83.94 kB / 0.7033 GB, free: 116.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001716/1.086, allocations: 172 kB / 0.7035 GB, free: 116.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01927/1.105, allocations: 5.774 MB / 0.7091 GB, free: 110.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006355/1.112, allocations: 2.047 MB / 0.7111 GB, free: 108.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02563/1.137, allocations: 25.64 MB / 0.7361 GB, free: 82.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007407/1.145, allocations: 0.5424 MB / 0.7367 GB, free: 82.12 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00143/1.146, allocations: 0.5 MB / 0.7372 GB, free: 81.62 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.005278/1.152, allocations: 3.096 MB / 0.7402 GB, free: 78.51 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/1.153, allocations: 0.5277 MB / 0.7407 GB, free: 77.98 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02602/1.179, allocations: 12.58 MB / 0.753 GB, free: 65.34 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.979e-05/1.179, allocations: 51.98 kB / 0.753 GB, free: 65.29 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/1.179, allocations: 8 kB / 0.753 GB, free: 65.28 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.624e-05/1.179, allocations: 25.39 kB / 0.7531 GB, free: 65.25 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04669/1.226, allocations: 24.16 MB / 0.7767 GB, free: 40.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.675e-05/1.226, allocations: 4 kB / 0.7767 GB, free: 40.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002702/1.228, allocations: 0.5739 MB / 0.7772 GB, free: 40.04 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01592/1.244, allocations: 4.802 MB / 0.7819 GB, free: 35.23 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005008/1.245, allocations: 61.78 kB / 0.782 GB, free: 35.17 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02062/1.265, allocations: 20.91 MB / 0.8024 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-06/1.265, allocations: 11.94 kB / 0.8024 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03042/1.296, allocations: 16.98 MB / 0.819 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2114/1.507, allocations: 0.5495 MB / 0.8195 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001833/1.509, allocations: 56.78 kB / 0.8196 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003245/1.512, allocations: 257.2 kB / 0.8198 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008155/1.513, allocations: 195.8 kB / 0.82 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002641/1.513, allocations: 84.92 kB / 0.8201 GB, free: 168 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005246/1.519, allocations: 3.422 MB / 0.8234 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/1.519, allocations: 1.406 kB / 0.8234 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008955/1.528, allocations: 1.708 MB / 0.8251 GB, free: 167.8 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.03593/1.564, allocations: 17.65 MB / 0.8423 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0138/1.577, allocations: 10.19 MB / 0.8523 GB, free: 160 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/1.577, allocations: 3 kB / 0.8523 GB, free: 160 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004352/1.582, allocations: 3.7 MB / 0.8559 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003852/1.586, allocations: 0.6513 MB / 0.8565 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1182/1.704, allocations: 86.08 MB / 0.9406 GB, free: 73.26 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004906/1.709, allocations: 4.632 MB / 0.9451 GB, free: 68.62 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005988/1.715, allocations: 2.984 MB / 0.948 GB, free: 65.64 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003668/1.718, allocations: 2.917 MB / 0.9509 GB, free: 62.72 MB / 0.5294 GB Notification: Performance of SimCode: time 1.032e-06/1.718, allocations: 0 / 0.9509 GB, free: 62.72 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3947/2.113, allocations: 126.2 MB / 1.074 GB, free: 157.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.7/41.81, allocations: 7.266 kB / 1.074 GB, free: 157.5 MB / 0.545 GB " [Timeout remaining time 618] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 45.23701659310609]