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.001294/0.001294, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.001426/0.001426, allocations: 206.4 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.449/1.449, allocations: 230.5 MB / 257.4 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002017/0.002017, allocations: 55.91 kB / 377.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2754, allocations: 53.41 MB / 431.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01808/0.2935, allocations: 13.01 MB / 444.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.3052, allocations: 4.621 MB / 448.8 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002343/0.3075, allocations: 111.4 kB / 448.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006937/0.3144, allocations: 3.091 MB / 452 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007563/0.322, allocations: 2.6 MB / 454.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002533/0.3245, allocations: 0.9905 MB / 455.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01113/0.3357, allocations: 7.057 MB / 462.6 MB, free: 6.852 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005972/0.3416, allocations: 3.555 MB / 466.2 MB, free: 3.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004621/0.3463, allocations: 2.258 MB / 468.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005908/0.3522, allocations: 3.353 MB / 471.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001892/0.3541, allocations: 484 kB / 472.3 MB, free: 13.13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003961/0.358, allocations: 1.393 MB / 473.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004519/0.3625, allocations: 2.929 MB / 476.6 MB, free: 8.797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005582/0.3681, allocations: 2.434 MB / 479 MB, free: 6.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01597/0.3841, allocations: 10.6 MB / 489.6 MB, free: 11.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.3841, allocations: 4 kB / 489.6 MB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3841, allocations: 0 / 489.6 MB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000434/0.3845, allocations: 3.938 kB / 489.6 MB, free: 11.7 MB / 398.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.02217/0.4067, allocations: 7.537 MB / 497.2 MB, free: 4.086 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.757e-05/0.4068, allocations: 19.98 kB / 497.2 MB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002404/0.4092, allocations: 1.137 MB / 498.3 MB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04284/0.452, allocations: 7.547 MB / 0.494 GB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01345/0.4655, allocations: 4.595 MB / 0.4985 GB, free: 6.703 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004363/0.4659, allocations: 328.2 kB / 0.4988 GB, free: 6.379 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002025/0.4679, allocations: 439.6 kB / 0.4992 GB, free: 5.949 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03002/0.498, allocations: 15.68 MB / 0.5145 GB, free: 5.324 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001973/0.4982, allocations: 67.48 kB / 0.5146 GB, free: 5.258 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000804/0.499, allocations: 203.8 kB / 0.5148 GB, free: 5.059 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005767/0.5047, allocations: 3.22 MB / 0.5179 GB, free: 1.836 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0286/0.5333, allocations: 13.87 MB / 0.5315 GB, free: 3.945 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2925/0.8258, allocations: 54.33 MB / 0.5845 GB, free: 54.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01158/0.8374, allocations: 5.275 MB / 0.5897 GB, free: 49.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003672/0.8411, allocations: 3.226 MB / 0.5928 GB, free: 45.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01796/0.859, allocations: 11.68 MB / 0.6043 GB, free: 34.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.8591, allocations: 60.5 kB / 0.6043 GB, free: 34.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 7.143e-06/0.8591, allocations: 0 / 0.6043 GB, free: 34.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1365/0.9955, allocations: 41.85 MB / 0.6452 GB, free: 8.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/0.9957, allocations: 218 kB / 0.6454 GB, free: 8.512 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009134/1.005, allocations: 5.782 MB / 0.651 GB, free: 2.957 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007664/1.006, allocations: 77.7 kB / 0.6511 GB, free: 2.875 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003875/1.009, allocations: 4.596 MB / 0.6556 GB, free: 14.37 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002076/1.012, allocations: 1.302 MB / 0.6569 GB, free: 13.05 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003011/1.015, allocations: 1.786 MB / 0.6586 GB, free: 11.25 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/1.015, allocations: 305.1 kB / 0.6589 GB, free: 10.95 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007793/1.022, allocations: 4.616 MB / 0.6634 GB, free: 6.328 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01325/1.036, allocations: 9.637 MB / 0.6728 GB, free: 10.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02098/1.057, allocations: 15.26 MB / 0.6877 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001556/1.057, allocations: 48 kB / 0.6878 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04893/1.106, allocations: 18.97 MB / 0.7063 GB, free: 5.43 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001437/1.106, allocations: 83.98 kB / 0.7064 GB, free: 5.348 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002895/1.106, allocations: 172 kB / 0.7065 GB, free: 5.18 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02423/1.13, allocations: 5.765 MB / 0.7122 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00766/1.138, allocations: 2.051 MB / 0.7142 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03823/1.176, allocations: 25.23 MB / 0.7388 GB, free: 3.871 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008243/1.185, allocations: 0.5462 MB / 0.7393 GB, free: 3.324 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001622/1.186, allocations: 0.5038 MB / 0.7398 GB, free: 2.82 MB / 0.545 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.2633/1.449, allocations: 3.087 MB / 0.7428 GB, free: 188.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001582/1.451, allocations: 0.523 MB / 0.7434 GB, free: 188.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03079/1.482, allocations: 12.57 MB / 0.7556 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001064/1.482, allocations: 54.8 kB / 0.7557 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.401e-05/1.482, allocations: 11.38 kB / 0.7557 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.928e-05/1.482, allocations: 11.2 kB / 0.7557 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04645/1.529, allocations: 22.99 MB / 0.7782 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.09e-05/1.529, allocations: 7.375 kB / 0.7782 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002961/1.532, allocations: 0.5804 MB / 0.7787 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01933/1.551, allocations: 4.802 MB / 0.7834 GB, free: 168.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007019/1.552, allocations: 62.98 kB / 0.7835 GB, free: 168 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02211/1.574, allocations: 20.51 MB / 0.8035 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/1.574, allocations: 11.94 kB / 0.8035 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0312/1.605, allocations: 16.98 MB / 0.8201 GB, free: 130.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/1.606, allocations: 485.9 kB / 0.8206 GB, free: 130.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009485/1.607, allocations: 55.98 kB / 0.8206 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002691/1.61, allocations: 259.5 kB / 0.8209 GB, free: 130 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000609/1.611, allocations: 197.5 kB / 0.8211 GB, free: 129.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002481/1.611, allocations: 90.12 kB / 0.8212 GB, free: 129.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003955/1.615, allocations: 3.42 MB / 0.8245 GB, free: 126.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.615, allocations: 0 / 0.8245 GB, free: 126.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006607/1.621, allocations: 1.688 MB / 0.8261 GB, free: 124.6 MB / 0.545 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.03081/1.652, allocations: 17.66 MB / 0.8434 GB, free: 106.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01363/1.666, allocations: 10.18 MB / 0.8533 GB, free: 96.69 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/1.666, allocations: 192 / 0.8533 GB, free: 96.69 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004743/1.671, allocations: 3.714 MB / 0.857 GB, free: 92.97 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003687/1.674, allocations: 0.6445 MB / 0.8576 GB, free: 92.34 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.134/1.808, allocations: 86.19 MB / 0.9418 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008573/1.817, allocations: 4.119 MB / 0.9458 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.2319/2.049, allocations: 2.973 MB / 0.9487 GB, free: 200.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004807/2.053, allocations: 2.916 MB / 0.9515 GB, free: 200.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.413e-06/2.053, allocations: 0 / 0.9515 GB, free: 200.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1883/2.242, allocations: 127.5 MB / 1.076 GB, free: 92.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.43/21.68, allocations: 11.86 kB / 1.076 GB, free: 92.3 MB / 0.5606 GB " [Timeout remaining time 638] (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/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_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: 25.130782490130514]