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.001281/0.001281, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001662/0.001662, allocations: 210.2 kB / 24.53 MB, free: 4.07 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.383/1.383, allocations: 230.5 MB / 258.2 MB, free: 8.02 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.001763/0.001763, allocations: 64.08 kB / 378.6 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2215, allocations: 53.41 MB / 432 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01651/0.238, allocations: 15.07 MB / 447 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.2487, allocations: 4.873 MB / 451.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003055/0.2517, allocations: 107.5 kB / 452 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006707/0.2584, allocations: 3.219 MB / 455.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006821/0.2652, allocations: 2.603 MB / 457.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002719/0.268, allocations: 0.9827 MB / 458.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01148/0.2794, allocations: 7.06 MB / 465.9 MB, free: 4.844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006066/0.2855, allocations: 3.579 MB / 469.5 MB, free: 1.195 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003801/0.2893, allocations: 2.25 MB / 471.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005507/0.2948, allocations: 3.517 MB / 475.2 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001515/0.2963, allocations: 484 kB / 475.7 MB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003474/0.2998, allocations: 1.529 MB / 477.2 MB, free: 9.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003782/0.3036, allocations: 2.933 MB / 480.2 MB, free: 6.465 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004202/0.3078, allocations: 3.289 MB / 483.5 MB, free: 3.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01334/0.3211, allocations: 10.54 MB / 494 MB, free: 8.578 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3211, allocations: 0 / 494 MB, free: 8.578 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3211, allocations: 0 / 494 MB, free: 8.578 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004128/0.3216, allocations: 4 kB / 494 MB, free: 8.574 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.01934/0.3409, allocations: 7.552 MB / 0.4898 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.3409, allocations: 12.03 kB / 0.4898 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000328/0.3413, allocations: 169 kB / 0.49 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003115/0.3444, allocations: 1.145 MB / 0.4911 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04435/0.3887, allocations: 7.551 MB / 0.4985 GB, free: 8.035 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01152/0.4003, allocations: 4.579 MB / 0.5029 GB, free: 3.402 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003483/0.4006, allocations: 328 kB / 0.5032 GB, free: 3.078 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00186/0.4025, allocations: 435.7 kB / 0.5037 GB, free: 2.652 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02735/0.4298, allocations: 15.62 MB / 0.5189 GB, free: 2.102 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001777/0.43, allocations: 67.47 kB / 0.519 GB, free: 2.035 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006886/0.4307, allocations: 207.7 kB / 0.5192 GB, free: 1.832 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005142/0.4358, allocations: 3.223 MB / 0.5223 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02738/0.4632, allocations: 13.91 MB / 0.5359 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2463/0.7095, allocations: 57.02 MB / 0.5916 GB, free: 49.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01091/0.7204, allocations: 5.274 MB / 0.5967 GB, free: 43.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003279/0.7237, allocations: 3.23 MB / 0.5999 GB, free: 40.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01544/0.7391, allocations: 12.31 MB / 0.6119 GB, free: 28.44 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.7391, allocations: 68.44 kB / 0.612 GB, free: 28.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.27e-06/0.7391, allocations: 0 / 0.612 GB, free: 28.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.129/0.8682, allocations: 41.77 MB / 0.6528 GB, free: 2.918 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.8683, allocations: 217.9 kB / 0.653 GB, free: 2.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00771/0.876, allocations: 5.494 MB / 0.6583 GB, free: 13.29 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007232/0.8768, allocations: 73.7 kB / 0.6584 GB, free: 13.21 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003445/0.8802, allocations: 4.599 MB / 0.6629 GB, free: 8.672 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001741/0.8819, allocations: 1.298 MB / 0.6642 GB, free: 7.363 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002846/0.8848, allocations: 1.79 MB / 0.6659 GB, free: 5.559 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.8849, allocations: 309 kB / 0.6662 GB, free: 5.254 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00669/0.8916, allocations: 4.62 MB / 0.6707 GB, free: 0.625 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01069/0.9023, allocations: 9.587 MB / 0.6801 GB, free: 4.586 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01906/0.9213, allocations: 15.26 MB / 0.695 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001097/0.9215, allocations: 52 kB / 0.695 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04499/0.9664, allocations: 18.96 MB / 0.7136 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002317/0.9667, allocations: 80 kB / 0.7136 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003041/0.967, allocations: 172 kB / 0.7138 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0232/0.9902, allocations: 5.773 MB / 0.7194 GB, free: 9.766 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007438/0.9976, allocations: 2.055 MB / 0.7214 GB, free: 7.707 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2362/1.234, allocations: 25.44 MB / 0.7463 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006768/1.241, allocations: 0.5484 MB / 0.7468 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001348/1.242, allocations: 0.502 MB / 0.7473 GB, free: 184.7 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.00508/1.247, allocations: 3.09 MB / 0.7503 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/1.248, allocations: 0.523 MB / 0.7508 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02761/1.276, allocations: 12.57 MB / 0.7631 GB, free: 180.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.841e-05/1.276, allocations: 54.72 kB / 0.7632 GB, free: 180.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/1.276, allocations: 7.812 kB / 0.7632 GB, free: 180.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.499e-05/1.276, allocations: 11.3 kB / 0.7632 GB, free: 180.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04292/1.319, allocations: 24.15 MB / 0.7868 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.153e-05/1.319, allocations: 4 kB / 0.7868 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002746/1.322, allocations: 0.5745 MB / 0.7873 GB, free: 165.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01741/1.339, allocations: 4.812 MB / 0.792 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005145/1.34, allocations: 57.97 kB / 0.7921 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02054/1.36, allocations: 20.7 MB / 0.8123 GB, free: 140.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/1.36, allocations: 14.84 kB / 0.8123 GB, free: 140.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02976/1.39, allocations: 16.98 MB / 0.8289 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/1.391, allocations: 490.5 kB / 0.8294 GB, free: 123 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001082/1.392, allocations: 59.61 kB / 0.8294 GB, free: 122.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00288/1.395, allocations: 255.6 kB / 0.8297 GB, free: 122.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006852/1.396, allocations: 201.4 kB / 0.8299 GB, free: 122.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002633/1.396, allocations: 80 kB / 0.8299 GB, free: 122.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003917/1.4, allocations: 3.42 MB / 0.8333 GB, free: 119 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/1.4, allocations: 0 / 0.8333 GB, free: 119 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006366/1.406, allocations: 1.684 MB / 0.8349 GB, free: 117.3 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.02921/1.435, allocations: 17.66 MB / 0.8522 GB, free: 99.52 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01138/1.447, allocations: 10.18 MB / 0.8621 GB, free: 89.38 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.447, allocations: 4 kB / 0.8621 GB, free: 89.38 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004031/1.451, allocations: 3.701 MB / 0.8657 GB, free: 85.67 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00326/1.454, allocations: 0.6471 MB / 0.8664 GB, free: 85.05 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3228/1.777, allocations: 86.21 MB / 0.9506 GB, free: 203 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006345/1.783, allocations: 4.621 MB / 0.9551 GB, free: 202.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005887/1.789, allocations: 2.978 MB / 0.958 GB, free: 202.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003677/1.793, allocations: 2.92 MB / 0.9608 GB, free: 201.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.132e-06/1.793, allocations: 1.469 kB / 0.9608 GB, free: 201.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1596/1.952, allocations: 130.1 MB / 1.088 GB, free: 83.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.08/43.03, allocations: 11.98 kB / 1.088 GB, free: 83.57 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: 47.12411246402189]