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.001659/0.001659, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.00184/0.00184, allocations: 210.1 kB / 24.52 MB, free: 3.941 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.393/1.393, allocations: 230.5 MB / 258.2 MB, free: 7.801 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 59.91 kB / 378.5 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2813, allocations: 53.41 MB / 431.9 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01594/0.2973, allocations: 12.93 MB / 444.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.3078, allocations: 4.605 MB / 449.4 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002272/0.31, allocations: 107.5 kB / 449.5 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006244/0.3163, allocations: 3.091 MB / 452.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006344/0.3226, allocations: 2.615 MB / 455.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002259/0.3249, allocations: 0.9827 MB / 456.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009857/0.3347, allocations: 7.051 MB / 463.3 MB, free: 7.004 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005484/0.3402, allocations: 3.578 MB / 466.9 MB, free: 3.355 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004014/0.3442, allocations: 2.258 MB / 469.1 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00546/0.3497, allocations: 3.517 MB / 472.6 MB, free: 13.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001785/0.3515, allocations: 484 kB / 473.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003554/0.355, allocations: 1.393 MB / 474.5 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004178/0.3592, allocations: 2.933 MB / 477.4 MB, free: 8.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005043/0.3643, allocations: 2.438 MB / 479.9 MB, free: 6.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01451/0.3788, allocations: 10.6 MB / 490.5 MB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3788, allocations: 3.938 kB / 490.5 MB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3788, allocations: 0 / 490.5 MB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003315/0.3791, allocations: 0 / 490.5 MB, free: 11.66 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.02078/0.3999, allocations: 7.544 MB / 498 MB, free: 4.035 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.3999, allocations: 8.031 kB / 498 MB, free: 4.027 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002801/0.4002, allocations: 176.9 kB / 498.2 MB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004013/0.4042, allocations: 1.145 MB / 499.4 MB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04178/0.446, allocations: 7.547 MB / 0.495 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/0.4571, allocations: 4.603 MB / 0.4995 GB, free: 6.469 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003087/0.4574, allocations: 316 kB / 0.4998 GB, free: 6.156 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001591/0.459, allocations: 439.7 kB / 0.5002 GB, free: 5.727 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02714/0.4862, allocations: 15.71 MB / 0.5156 GB, free: 5.074 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001656/0.4863, allocations: 63.47 kB / 0.5156 GB, free: 5.012 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000714/0.4871, allocations: 203.8 kB / 0.5158 GB, free: 4.812 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005094/0.4922, allocations: 3.22 MB / 0.519 GB, free: 1.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02817/0.5203, allocations: 13.91 MB / 0.5326 GB, free: 3.656 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.265/0.7853, allocations: 54.35 MB / 0.5856 GB, free: 54.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01126/0.7966, allocations: 5.275 MB / 0.5908 GB, free: 48.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003472/0.8001, allocations: 3.232 MB / 0.5939 GB, free: 45.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01633/0.8164, allocations: 11.68 MB / 0.6053 GB, free: 34.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.8164, allocations: 68.44 kB / 0.6054 GB, free: 34.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 6.091e-06/0.8164, allocations: 0 / 0.6054 GB, free: 34.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1289/0.9454, allocations: 41.84 MB / 0.6463 GB, free: 8.535 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001732/0.9455, allocations: 217.9 kB / 0.6465 GB, free: 8.277 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008522/0.9541, allocations: 5.498 MB / 0.6519 GB, free: 2.906 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007963/0.9549, allocations: 73.69 kB / 0.6519 GB, free: 2.828 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003689/0.9586, allocations: 4.6 MB / 0.6564 GB, free: 14.42 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001948/0.9605, allocations: 1.302 MB / 0.6577 GB, free: 13.11 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00303/0.9635, allocations: 1.79 MB / 0.6594 GB, free: 11.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.9637, allocations: 304.9 kB / 0.6597 GB, free: 11 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007039/0.9707, allocations: 4.616 MB / 0.6642 GB, free: 6.379 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01133/0.982, allocations: 9.645 MB / 0.6737 GB, free: 10.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02043/1.002, allocations: 15.26 MB / 0.6886 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001617/1.003, allocations: 52 kB / 0.6886 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04477/1.047, allocations: 18.95 MB / 0.7071 GB, free: 5.488 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001349/1.048, allocations: 80 kB / 0.7072 GB, free: 5.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000248/1.048, allocations: 176 kB / 0.7073 GB, free: 5.238 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02209/1.07, allocations: 5.773 MB / 0.713 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007501/1.077, allocations: 2.051 MB / 0.715 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03604/1.113, allocations: 25.23 MB / 0.7396 GB, free: 3.922 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00839/1.122, allocations: 0.5502 MB / 0.7402 GB, free: 3.371 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001551/1.123, allocations: 0.5038 MB / 0.7407 GB, free: 2.867 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.2134/1.337, allocations: 3.088 MB / 0.7437 GB, free: 190.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001537/1.338, allocations: 0.5264 MB / 0.7442 GB, free: 190.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02846/1.367, allocations: 12.56 MB / 0.7565 GB, free: 188 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-05/1.367, allocations: 60.27 kB / 0.7565 GB, free: 188 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/1.367, allocations: 14.62 kB / 0.7565 GB, free: 188 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.027e-05/1.367, allocations: 18.55 kB / 0.7565 GB, free: 188 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03985/1.407, allocations: 23 MB / 0.779 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.914e-05/1.407, allocations: 7.906 kB / 0.779 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002742/1.409, allocations: 0.5772 MB / 0.7796 GB, free: 173.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01665/1.426, allocations: 4.8 MB / 0.7843 GB, free: 168.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005911/1.427, allocations: 63.84 kB / 0.7843 GB, free: 168.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02036/1.447, allocations: 20.51 MB / 0.8043 GB, free: 147.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/1.447, allocations: 11.94 kB / 0.8044 GB, free: 147.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02807/1.475, allocations: 16.98 MB / 0.8209 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.476, allocations: 489.8 kB / 0.8214 GB, free: 130.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008295/1.477, allocations: 59.67 kB / 0.8215 GB, free: 130.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002528/1.48, allocations: 266.8 kB / 0.8217 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006771/1.48, allocations: 197.5 kB / 0.8219 GB, free: 130.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002543/1.481, allocations: 84 kB / 0.822 GB, free: 130 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003633/1.484, allocations: 3.416 MB / 0.8253 GB, free: 126.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.1e-08/1.484, allocations: 0 / 0.8253 GB, free: 126.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005846/1.49, allocations: 1.684 MB / 0.827 GB, free: 124.9 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.02793/1.518, allocations: 17.65 MB / 0.8442 GB, free: 107.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0123/1.53, allocations: 10.18 MB / 0.8542 GB, free: 96.96 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.53, allocations: 0 / 0.8542 GB, free: 96.96 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004348/1.535, allocations: 3.712 MB / 0.8578 GB, free: 93.23 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003408/1.538, allocations: 0.6465 MB / 0.8584 GB, free: 92.61 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1123/1.65, allocations: 86.19 MB / 0.9426 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005436/1.656, allocations: 4.128 MB / 0.9466 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.2204/1.876, allocations: 2.968 MB / 0.9495 GB, free: 200.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004467/1.881, allocations: 2.918 MB / 0.9524 GB, free: 200.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.042e-06/1.881, allocations: 3.641 kB / 0.9524 GB, free: 200.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1769/2.058, allocations: 127.2 MB / 1.077 GB, free: 92.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.37/42.43, allocations: 8.016 kB / 1.077 GB, free: 92.89 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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 46.56173200206831]