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.0008066/0.0008066, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0007725/0.0007725, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.847/0.847, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.132e-06/1.132e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.217e-06/1.035e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.009063/0.009073, allocations: 13.04 MB / 337.6 MB, free: 2.832 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005308/0.01438, allocations: 4.64 MB / 342.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007709/0.01515, allocations: 107.5 kB / 342.4 MB, free: 14.07 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002975/0.01813, allocations: 3.227 MB / 345.6 MB, free: 10.83 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002598/0.02073, allocations: 2.687 MB / 348.3 MB, free: 8.129 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009769/0.0217, allocations: 1.096 MB / 349.4 MB, free: 7.031 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00438/0.02608, allocations: 7.812 MB / 357.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002555/0.02864, allocations: 4.089 MB / 361.3 MB, free: 11.06 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002117/0.03075, allocations: 3.375 MB / 364.6 MB, free: 7.676 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002511/0.03327, allocations: 3.585 MB / 368.2 MB, free: 4.082 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004134/0.03368, allocations: 496 kB / 368.7 MB, free: 3.598 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001228/0.03491, allocations: 1.467 MB / 370.2 MB, free: 2.129 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001696/0.0366, allocations: 3.058 MB / 373.2 MB, free: 15.06 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001273/0.03788, allocations: 1.9 MB / 375.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006153/0.04403, allocations: 10.67 MB / 385.8 MB, free: 2.453 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.04403, allocations: 3.938 kB / 385.8 MB, free: 2.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.04403, allocations: 0 / 385.8 MB, free: 2.449 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.278e-05/0.04412, allocations: 4 kB / 385.8 MB, free: 2.445 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.008405/0.05252, allocations: 7.617 MB / 393.4 MB, free: 10.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.05256, allocations: 8.031 kB / 393.4 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001167/0.05373, allocations: 1.133 MB / 394.6 MB, free: 9.594 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02105/0.07479, allocations: 7.981 MB / 402.5 MB, free: 1.598 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005742/0.08053, allocations: 4.271 MB / 406.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001491/0.08068, allocations: 316.4 kB / 407.1 MB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005766/0.08125, allocations: 436.2 kB / 407.6 MB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01454/0.0958, allocations: 15.69 MB / 423.2 MB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-05/0.09589, allocations: 63.47 kB / 423.3 MB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003709/0.09626, allocations: 203.8 kB / 423.5 MB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002611/0.09887, allocations: 3.22 MB / 426.7 MB, free: 8.406 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01506/0.1139, allocations: 13.89 MB / 440.6 MB, free: 10.49 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1745/0.2885, allocations: 54.77 MB / 495.4 MB, free: 69.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00632/0.2948, allocations: 5.467 MB / 0.4891 GB, free: 66.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002061/0.2968, allocations: 3.228 MB / 0.4923 GB, free: 62.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0101/0.3069, allocations: 12.02 MB / 0.504 GB, free: 51.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.307, allocations: 60.03 kB / 0.5041 GB, free: 51.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 4.779e-06/0.307, allocations: 0 / 0.5041 GB, free: 51.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.06941/0.3764, allocations: 42.82 MB / 0.5459 GB, free: 8.793 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.3765, allocations: 213.9 kB / 0.5461 GB, free: 8.539 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00492/0.3814, allocations: 6.151 MB / 0.5521 GB, free: 2.617 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002171/0.3816, allocations: 69.69 kB / 0.5522 GB, free: 2.543 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001729/0.3833, allocations: 4.549 MB / 0.5566 GB, free: 14.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009503/0.3843, allocations: 1.279 MB / 0.5578 GB, free: 12.87 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001679/0.386, allocations: 1.764 MB / 0.5596 GB, free: 11.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.997e-05/0.386, allocations: 301.1 kB / 0.5599 GB, free: 10.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004627/0.3907, allocations: 4.624 MB / 0.5644 GB, free: 6.164 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006631/0.3973, allocations: 9.641 MB / 0.5738 GB, free: 10.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01201/0.4093, allocations: 15.25 MB / 0.5887 GB, free: 8.336 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.95e-05/0.4094, allocations: 52 kB / 0.5887 GB, free: 8.285 MB / 458.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.02407/0.4334, allocations: 18.96 MB / 0.6072 GB, free: 5.281 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.628e-05/0.4335, allocations: 83.98 kB / 0.6073 GB, free: 5.199 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001631/0.4337, allocations: 176.9 kB / 0.6075 GB, free: 5.027 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1571/0.5908, allocations: 5.771 MB / 0.6131 GB, free: 155.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00457/0.5954, allocations: 2.051 MB / 0.6151 GB, free: 155.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01808/0.6135, allocations: 25.28 MB / 0.6398 GB, free: 144.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005093/0.6185, allocations: 0.5998 MB / 0.6404 GB, free: 144.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005745/0.6191, allocations: 0.5018 MB / 0.6409 GB, free: 143.8 MB / 474.7 MB 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.003171/0.6223, allocations: 3.093 MB / 0.6439 GB, free: 141.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005687/0.6229, allocations: 0.5216 MB / 0.6444 GB, free: 141 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01506/0.6379, allocations: 12.56 MB / 0.6567 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-05/0.638, allocations: 59.92 kB / 0.6568 GB, free: 129.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.618e-05/0.638, allocations: 13.77 kB / 0.6568 GB, free: 129.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.859e-05/0.638, allocations: 19.94 kB / 0.6568 GB, free: 129.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02693/0.6649, allocations: 23.14 MB / 0.6794 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.6649, allocations: 11.88 kB / 0.6794 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001452/0.6664, allocations: 0.5811 MB / 0.68 GB, free: 105.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009131/0.6755, allocations: 4.799 MB / 0.6846 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002265/0.6758, allocations: 55.98 kB / 0.6847 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01383/0.6896, allocations: 20.56 MB / 0.7048 GB, free: 79.71 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.6896, allocations: 11.94 kB / 0.7048 GB, free: 79.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01768/0.7073, allocations: 16.97 MB / 0.7214 GB, free: 62.87 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/0.7086, allocations: 0.5376 MB / 0.7219 GB, free: 62.41 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004282/0.709, allocations: 55.98 kB / 0.7219 GB, free: 62.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/0.7106, allocations: 307.3 kB / 0.7222 GB, free: 62.06 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004305/0.711, allocations: 200.7 kB / 0.7224 GB, free: 61.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/0.7112, allocations: 87.98 kB / 0.7225 GB, free: 61.78 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00298/0.7142, allocations: 3.697 MB / 0.7261 GB, free: 58.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7142, allocations: 0 / 0.7261 GB, free: 58.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004422/0.7186, allocations: 1.823 MB / 0.7279 GB, free: 56.29 MB / 474.7 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 (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.0174/0.736, allocations: 17.66 MB / 0.7451 GB, free: 38.47 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00852/0.7445, allocations: 10.19 MB / 0.7551 GB, free: 28.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.7445, allocations: 4 kB / 0.7551 GB, free: 28.29 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002727/0.7472, allocations: 3.699 MB / 0.7587 GB, free: 24.57 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002496/0.7497, allocations: 0.6494 MB / 0.7593 GB, free: 23.94 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2181/0.9678, allocations: 87.21 MB / 0.8445 GB, free: 123.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002683/0.9705, allocations: 4.12 MB / 0.8485 GB, free: 119.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003449/0.9739, allocations: 2.993 MB / 0.8515 GB, free: 116.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001979/0.9759, allocations: 2.922 MB / 0.8543 GB, free: 113.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.924e-06/0.9759, allocations: 4 kB / 0.8543 GB, free: 113.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2431/1.219, allocations: 129.5 MB / 0.9808 GB, free: 155.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/13.08, allocations: 11.95 kB / 0.9808 GB, free: 155.7 MB / 490.7 MB " [Timeout remaining time 647] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/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: 15.203028293326497]