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.00224/0.00224, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.002358/0.002358, allocations: 213.6 kB / 23.74 MB, free: 4.672 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.459/1.459, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.001924/0.001924, allocations: 67.83 kB / 377.8 MB, free: 3.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2424, allocations: 53.41 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01712/0.2595, allocations: 15.06 MB / 446.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.2701, allocations: 4.873 MB / 451.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00235/0.2725, allocations: 107.5 kB / 451.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006636/0.2791, allocations: 3.216 MB / 454.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006851/0.2859, allocations: 2.607 MB / 457 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002501/0.2884, allocations: 0.9866 MB / 458 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0106/0.299, allocations: 7.056 MB / 465.1 MB, free: 4.664 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005496/0.3045, allocations: 3.578 MB / 468.7 MB, free: 1.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004203/0.3087, allocations: 2.254 MB / 470.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005762/0.3145, allocations: 3.52 MB / 474.4 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001782/0.3163, allocations: 484 kB / 474.9 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003645/0.3199, allocations: 1.529 MB / 476.4 MB, free: 9.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004341/0.3243, allocations: 2.933 MB / 479.4 MB, free: 6.281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005922/0.3302, allocations: 3.281 MB / 482.7 MB, free: 2.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01451/0.3447, allocations: 10.54 MB / 493.2 MB, free: 8.395 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3447, allocations: 0 / 493.2 MB, free: 8.395 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3447, allocations: 0 / 493.2 MB, free: 8.395 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003239/0.345, allocations: 0 / 493.2 MB, free: 8.395 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.01941/0.3644, allocations: 7.548 MB / 0.489 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.17e-05/0.3645, allocations: 16.02 kB / 0.489 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003797/0.3683, allocations: 1.129 MB / 0.4901 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04254/0.4108, allocations: 7.547 MB / 0.4975 GB, free: 8.047 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01149/0.4223, allocations: 4.583 MB / 0.502 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003453/0.4227, allocations: 324.2 kB / 0.5023 GB, free: 3.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001709/0.4244, allocations: 435.7 kB / 0.5027 GB, free: 2.664 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03014/0.4545, allocations: 15.61 MB / 0.518 GB, free: 2.121 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002364/0.4548, allocations: 55.58 kB / 0.518 GB, free: 2.066 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001526/0.4563, allocations: 207.8 kB / 0.5182 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005848/0.4621, allocations: 3.219 MB / 0.5213 GB, free: 14.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03074/0.4929, allocations: 13.91 MB / 0.5349 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2913/0.7842, allocations: 56.99 MB / 0.5906 GB, free: 48.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0114/0.7956, allocations: 5.274 MB / 0.5957 GB, free: 43.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003831/0.7994, allocations: 3.239 MB / 0.5989 GB, free: 40.38 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0205/0.8199, allocations: 12.31 MB / 0.6109 GB, free: 28.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.8199, allocations: 60.56 kB / 0.611 GB, free: 28.24 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.861e-06/0.8199, allocations: 0 / 0.611 GB, free: 28.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1336/0.9536, allocations: 41.77 MB / 0.6518 GB, free: 2.789 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001495/0.9537, allocations: 210 kB / 0.652 GB, free: 2.539 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00985/0.9636, allocations: 5.497 MB / 0.6573 GB, free: 13.17 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007486/0.9643, allocations: 69.7 kB / 0.6574 GB, free: 13.09 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003952/0.9683, allocations: 4.6 MB / 0.6619 GB, free: 8.551 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001922/0.9702, allocations: 1.298 MB / 0.6632 GB, free: 7.242 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004318/0.9745, allocations: 1.794 MB / 0.6649 GB, free: 5.434 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.9746, allocations: 305.1 kB / 0.6652 GB, free: 5.133 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007927/0.9826, allocations: 4.616 MB / 0.6697 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01315/0.9957, allocations: 9.595 MB / 0.6791 GB, free: 4.461 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02213/1.018, allocations: 15.26 MB / 0.694 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001685/1.018, allocations: 51.94 kB / 0.694 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04713/1.065, allocations: 18.95 MB / 0.7125 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002138/1.065, allocations: 80 kB / 0.7126 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002922/1.066, allocations: 172 kB / 0.7128 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02272/1.088, allocations: 5.766 MB / 0.7184 GB, free: 9.652 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007933/1.096, allocations: 2.055 MB / 0.7204 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2781/1.374, allocations: 25.44 MB / 0.7453 GB, free: 183.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00802/1.382, allocations: 0.5467 MB / 0.7458 GB, free: 183.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001878/1.384, allocations: 0.5032 MB / 0.7463 GB, free: 183.3 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.006931/1.391, allocations: 3.091 MB / 0.7493 GB, free: 182.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001489/1.393, allocations: 0.525 MB / 0.7498 GB, free: 182.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02784/1.421, allocations: 12.57 MB / 0.7621 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.844e-05/1.421, allocations: 60.16 kB / 0.7622 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-05/1.421, allocations: 10.72 kB / 0.7622 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.328e-05/1.421, allocations: 15.14 kB / 0.7622 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04874/1.469, allocations: 24.13 MB / 0.7857 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-05/1.469, allocations: 15.25 kB / 0.7858 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002831/1.472, allocations: 0.5695 MB / 0.7863 GB, free: 165.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01707/1.489, allocations: 4.813 MB / 0.791 GB, free: 160.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006995/1.49, allocations: 52 kB / 0.7911 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02214/1.512, allocations: 20.7 MB / 0.8113 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/1.512, allocations: 11.61 kB / 0.8113 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03066/1.543, allocations: 16.99 MB / 0.8279 GB, free: 122.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/1.544, allocations: 488.6 kB / 0.8284 GB, free: 122.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001533/1.546, allocations: 56 kB / 0.8284 GB, free: 122.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003437/1.549, allocations: 255.6 kB / 0.8287 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009955/1.55, allocations: 197.4 kB / 0.8288 GB, free: 122 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004932/1.551, allocations: 92.22 kB / 0.8289 GB, free: 121.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005074/1.556, allocations: 3.422 MB / 0.8323 GB, free: 118.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/1.556, allocations: 0 / 0.8323 GB, free: 118.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007198/1.563, allocations: 1.678 MB / 0.8339 GB, free: 116.8 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.03021/1.593, allocations: 17.66 MB / 0.8512 GB, free: 99.05 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01332/1.606, allocations: 10.19 MB / 0.8611 GB, free: 88.91 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/1.606, allocations: 0 / 0.8611 GB, free: 88.91 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004729/1.611, allocations: 3.705 MB / 0.8647 GB, free: 85.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004278/1.615, allocations: 0.6434 MB / 0.8653 GB, free: 84.59 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.392/2.007, allocations: 86.2 MB / 0.9495 GB, free: 199.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008067/2.016, allocations: 4.618 MB / 0.954 GB, free: 199 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006577/2.022, allocations: 2.977 MB / 0.9569 GB, free: 198.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004315/2.026, allocations: 2.913 MB / 0.9598 GB, free: 198.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.052e-06/2.026, allocations: 0 / 0.9598 GB, free: 198.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1825/2.209, allocations: 130.1 MB / 1.087 GB, free: 81.34 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.94/43.15, allocations: 17.7 kB / 1.087 GB, free: 81.33 MB / 0.5606 GB " [Timeout remaining time 617] (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: 46.56618938408792]