Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008757/0.0008757, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008174/0.0008174, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8869/0.8869, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.847e-05/2.002e-05, allocations: 2.281 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.009723/0.009743, allocations: 13.04 MB / 337.6 MB, free: 2.773 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007849/0.01759, allocations: 4.628 MB / 342.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001987/0.01958, allocations: 111.5 kB / 342.3 MB, free: 14.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003604/0.02318, allocations: 3.235 MB / 345.5 MB, free: 10.77 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00453/0.02771, allocations: 2.679 MB / 348.2 MB, free: 8.078 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.02949, allocations: 1.099 MB / 349.3 MB, free: 6.977 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007297/0.03679, allocations: 7.815 MB / 357.1 MB, free: 15.15 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004926/0.04172, allocations: 4.093 MB / 361.2 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005343/0.04706, allocations: 3.371 MB / 364.6 MB, free: 7.613 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003957/0.05102, allocations: 3.585 MB / 368.2 MB, free: 4.02 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001105/0.05212, allocations: 500 kB / 368.7 MB, free: 3.531 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002021/0.05414, allocations: 1.467 MB / 370.1 MB, free: 2.062 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002325/0.05647, allocations: 3.058 MB / 373.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002067/0.05853, allocations: 1.904 MB / 375.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009441/0.06798, allocations: 10.67 MB / 385.8 MB, free: 2.379 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.06798, allocations: 0 / 385.8 MB, free: 2.379 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.06798, allocations: 4 kB / 385.8 MB, free: 2.375 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003003/0.06828, allocations: 0 / 385.8 MB, free: 2.375 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.01235/0.08064, allocations: 7.607 MB / 393.4 MB, free: 10.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.08069, allocations: 11.98 kB / 393.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001628/0.08231, allocations: 1.137 MB / 394.5 MB, free: 9.527 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02195/0.1043, allocations: 7.981 MB / 402.5 MB, free: 1.531 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007351/0.1116, allocations: 4.263 MB / 406.8 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000475/0.1121, allocations: 316.3 kB / 407.1 MB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0014/0.1135, allocations: 444.2 kB / 407.5 MB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/0.1324, allocations: 15.7 MB / 423.2 MB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001299/0.1325, allocations: 63.45 kB / 423.3 MB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005294/0.133, allocations: 203.8 kB / 423.5 MB, free: 11.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002908/0.136, allocations: 3.216 MB / 426.7 MB, free: 8.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01857/0.1545, allocations: 13.89 MB / 440.6 MB, free: 10.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1895/0.344, allocations: 54.76 MB / 495.3 MB, free: 69.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007305/0.3513, allocations: 5.462 MB / 0.4891 GB, free: 66.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002631/0.3539, allocations: 3.241 MB / 0.4922 GB, free: 62.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01223/0.3662, allocations: 12.01 MB / 0.504 GB, free: 51.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.3662, allocations: 60.56 kB / 0.504 GB, free: 51.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 7.724e-06/0.3662, allocations: 3.344 kB / 0.504 GB, free: 51.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.07223/0.4385, allocations: 42.83 MB / 0.5458 GB, free: 8.645 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.4385, allocations: 210 kB / 0.546 GB, free: 8.395 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00534/0.4438, allocations: 6.151 MB / 0.552 GB, free: 2.473 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006279/0.4445, allocations: 73.7 kB / 0.5521 GB, free: 2.395 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001882/0.4464, allocations: 4.548 MB / 0.5566 GB, free: 13.99 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001208/0.4476, allocations: 1.283 MB / 0.5578 GB, free: 12.72 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001775/0.4493, allocations: 1.757 MB / 0.5595 GB, free: 10.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.235e-05/0.4494, allocations: 301.1 kB / 0.5598 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004888/0.4543, allocations: 4.62 MB / 0.5643 GB, free: 6.027 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006999/0.4613, allocations: 9.647 MB / 0.5737 GB, free: 9.914 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01371/0.475, allocations: 15.26 MB / 0.5886 GB, free: 8.188 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002425/0.4752, allocations: 52 kB / 0.5887 GB, free: 8.137 MB / 458.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.02933/0.5046, allocations: 18.97 MB / 0.6072 GB, free: 5.129 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.164e-05/0.5047, allocations: 76 kB / 0.6073 GB, free: 5.055 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001583/0.5048, allocations: 179.9 kB / 0.6075 GB, free: 4.879 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1609/0.6657, allocations: 5.773 MB / 0.6131 GB, free: 154.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004993/0.6707, allocations: 2.053 MB / 0.6151 GB, free: 154.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01973/0.6904, allocations: 25.26 MB / 0.6398 GB, free: 144.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00524/0.6957, allocations: 0.6075 MB / 0.6404 GB, free: 144.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007517/0.6964, allocations: 0.5018 MB / 0.6409 GB, free: 143.6 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.003562/0.7, allocations: 3.087 MB / 0.6439 GB, free: 141 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00079/0.7008, allocations: 0.5249 MB / 0.6444 GB, free: 140.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01571/0.7165, allocations: 12.57 MB / 0.6567 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.102e-05/0.7166, allocations: 56.73 kB / 0.6567 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.7166, allocations: 8.875 kB / 0.6567 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-05/0.7166, allocations: 19.89 kB / 0.6567 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02731/0.7439, allocations: 23.14 MB / 0.6793 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.401e-05/0.744, allocations: 9.078 kB / 0.6793 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001919/0.7459, allocations: 0.5748 MB / 0.6799 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009673/0.7555, allocations: 4.807 MB / 0.6846 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005945/0.7561, allocations: 53.75 kB / 0.6846 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01498/0.7711, allocations: 20.58 MB / 0.7047 GB, free: 79.47 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.7711, allocations: 11.84 kB / 0.7048 GB, free: 79.46 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01908/0.7902, allocations: 16.97 MB / 0.7213 GB, free: 62.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/0.7916, allocations: 0.5392 MB / 0.7219 GB, free: 62.19 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008318/0.7925, allocations: 52 kB / 0.7219 GB, free: 62.14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/0.7942, allocations: 307.5 kB / 0.7222 GB, free: 61.84 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005192/0.7948, allocations: 201.4 kB / 0.7224 GB, free: 61.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/0.7949, allocations: 80 kB / 0.7225 GB, free: 61.56 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00362/0.7985, allocations: 3.701 MB / 0.7261 GB, free: 57.88 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.7985, allocations: 0 / 0.7261 GB, free: 57.88 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005304/0.8038, allocations: 1.827 MB / 0.7279 GB, free: 56.07 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.01852/0.8224, allocations: 17.66 MB / 0.7451 GB, free: 38.24 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00997/0.8323, allocations: 10.18 MB / 0.755 GB, free: 28.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.8323, allocations: 0 / 0.755 GB, free: 28.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003401/0.8357, allocations: 3.702 MB / 0.7587 GB, free: 24.35 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002966/0.8387, allocations: 0.6564 MB / 0.7593 GB, free: 23.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2385/1.077, allocations: 87.21 MB / 0.8445 GB, free: 124 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003291/1.081, allocations: 4.114 MB / 0.8485 GB, free: 119.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003923/1.084, allocations: 2.987 MB / 0.8514 GB, free: 117 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002899/1.087, allocations: 2.929 MB / 0.8543 GB, free: 114.1 MB / 490.7 MB Notification: Performance of SimCode: time 2.886e-06/1.087, allocations: 0 / 0.8543 GB, free: 114.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2779/1.365, allocations: 129.5 MB / 0.9807 GB, free: 156 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/14.05, allocations: 11.22 kB / 0.9808 GB, free: 156 MB / 490.7 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 16.299707809463143]