Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.005889/0.005889, allocations: 114 kB / 21.97 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 212.3 kB / 25.28 MB, free: 3.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 207.6 MB / 236 MB, free: 9.977 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 51.92 kB / 348 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.243, allocations: 49.16 MB / 397.1 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01118/0.2542, allocations: 13.62 MB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.2645, allocations: 4.911 MB / 415.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002157/0.2666, allocations: 102.5 kB / 415.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007477/0.2741, allocations: 4.261 MB / 420 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005935/0.28, allocations: 2.214 MB / 422.3 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002563/0.2826, allocations: 1.111 MB / 423.4 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007801/0.2904, allocations: 5.64 MB / 429 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005511/0.2959, allocations: 4.074 MB / 433.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004211/0.3001, allocations: 2.201 MB / 435.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005383/0.3055, allocations: 3.104 MB / 438.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001769/0.3073, allocations: 0.4922 MB / 438.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003979/0.3113, allocations: 1.674 MB / 440.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003437/0.3147, allocations: 2.68 MB / 443.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003989/0.3187, allocations: 2.972 MB / 446.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.3307, allocations: 9.733 MB / 455.9 MB, free: 8.332 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3307, allocations: 0 / 455.9 MB, free: 8.332 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3307, allocations: 0 / 455.9 MB, free: 8.332 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002278/0.331, allocations: 4 kB / 455.9 MB, free: 8.328 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.0134/0.3444, allocations: 6.319 MB / 462.3 MB, free: 1.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.3444, allocations: 11.98 kB / 462.3 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001749/0.3446, allocations: 159.3 kB / 462.4 MB, free: 1.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001425/0.346, allocations: 0.9327 MB / 463.4 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03716/0.3832, allocations: 6.055 MB / 469.4 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0103/0.3935, allocations: 4.738 MB / 474.1 MB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002841/0.3938, allocations: 311.9 kB / 474.5 MB, free: 5.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001237/0.395, allocations: 439.7 kB / 474.9 MB, free: 5.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02323/0.4182, allocations: 12.32 MB / 487.2 MB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001646/0.4184, allocations: 59.52 kB / 487.3 MB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005177/0.4189, allocations: 191.9 kB / 487.4 MB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003301/0.4222, allocations: 2.031 MB / 489.5 MB, free: 5.875 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02153/0.4437, allocations: 10.37 MB / 499.8 MB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05987/0.5036, allocations: 43.89 MB / 0.531 GB, free: 14.32 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01276/0.5164, allocations: 4.293 MB / 0.5352 GB, free: 9.988 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002744/0.5191, allocations: 1.844 MB / 0.537 GB, free: 8.133 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01134/0.5305, allocations: 6.084 MB / 0.5429 GB, free: 2.023 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.601e-05/0.5305, allocations: 51.81 kB / 0.543 GB, free: 1.965 MB / 462.1 MB Notification: Performance of pre-optimization done (n=181): time 4.529e-06/0.5305, allocations: 0 / 0.543 GB, free: 1.965 MB / 462.1 MB Notification: Performance of matching and sorting (n=225): time 0.2656/0.7961, allocations: 19.41 MB / 0.5619 GB, free: 146.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.7962, allocations: 206.8 kB / 0.5621 GB, free: 145.8 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008463/0.8047, allocations: 4.526 MB / 0.5665 GB, free: 144.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000657/0.8053, allocations: 58.94 kB / 0.5666 GB, free: 144.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002839/0.8082, allocations: 3.706 MB / 0.5702 GB, free: 142.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001085/0.8093, allocations: 0.8842 MB / 0.5711 GB, free: 142.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001734/0.811, allocations: 1.276 MB / 0.5723 GB, free: 141.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.359e-05/0.8111, allocations: 306 kB / 0.5726 GB, free: 141.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003432/0.8145, allocations: 2.231 MB / 0.5748 GB, free: 140.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004656/0.8191, allocations: 5.988 MB / 0.5807 GB, free: 134.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00782/0.827, allocations: 8.918 MB / 0.5894 GB, free: 127.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/0.8271, allocations: 37.97 kB / 0.5894 GB, free: 127.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.01326/0.8403, allocations: 9.043 MB / 0.5982 GB, free: 123.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.416e-05/0.8404, allocations: 64.08 kB / 0.5983 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001673/0.8406, allocations: 130.1 kB / 0.5984 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003585/0.8442, allocations: 1.213 MB / 0.5996 GB, free: 123.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004615/0.8488, allocations: 1.416 MB / 0.601 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008932/0.8577, allocations: 7.896 MB / 0.6087 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005163/0.8629, allocations: 347.9 kB / 0.609 GB, free: 114.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006584/0.8635, allocations: 376 kB / 0.6094 GB, free: 113.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 764 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003274/0.8668, allocations: 2.49 MB / 0.6118 GB, free: 111.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006388/0.8675, allocations: 433.1 kB / 0.6122 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006205/0.8737, allocations: 3.879 MB / 0.616 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.8737, allocations: 27.44 kB / 0.616 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.8737, allocations: 4 kB / 0.616 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.8737, allocations: 11.97 kB / 0.6161 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01375/0.8875, allocations: 9.979 MB / 0.6258 GB, free: 97.05 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.8875, allocations: 4 kB / 0.6258 GB, free: 97.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/0.8887, allocations: 331.5 kB / 0.6261 GB, free: 96.72 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002798/0.8915, allocations: 0.9918 MB / 0.6271 GB, free: 95.73 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001289/0.8916, allocations: 40 kB / 0.6271 GB, free: 95.69 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007295/0.8989, allocations: 6.592 MB / 0.6336 GB, free: 88.98 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.8989, allocations: 7.938 kB / 0.6336 GB, free: 88.98 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008437/0.9074, allocations: 6.632 MB / 0.6401 GB, free: 82.27 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.909, allocations: 0.6687 MB / 0.6407 GB, free: 81.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004187/0.9094, allocations: 43.98 kB / 0.6407 GB, free: 81.55 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/0.9108, allocations: 107.9 kB / 0.6408 GB, free: 81.45 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002611/0.9111, allocations: 153 kB / 0.641 GB, free: 81.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.9112, allocations: 67.09 kB / 0.6411 GB, free: 81.24 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003082/0.9143, allocations: 2.848 MB / 0.6438 GB, free: 78.39 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.9143, allocations: 0 / 0.6438 GB, free: 78.39 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004383/0.9186, allocations: 1.18 MB / 0.645 GB, free: 77.21 MB / 478.1 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 (175): * Single equations (assignments): 171 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00839/0.927, allocations: 7.349 MB / 0.6522 GB, free: 69.78 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006503/0.9335, allocations: 5.314 MB / 0.6574 GB, free: 64.48 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.9335, allocations: 4 kB / 0.6574 GB, free: 64.47 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001827/0.9354, allocations: 1.704 MB / 0.659 GB, free: 62.76 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002798/0.9382, allocations: 0.5706 MB / 0.6596 GB, free: 62.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05577/0.9939, allocations: 51.79 MB / 0.7102 GB, free: 4.441 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003009/0.9969, allocations: 3.887 MB / 0.714 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004021/1.001, allocations: 1.942 MB / 0.7159 GB, free: 14.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003014/1.004, allocations: 2.315 MB / 0.7181 GB, free: 12.25 MB / 494.1 MB Notification: Performance of SimCode: time 7.21e-07/1.004, allocations: 0 / 0.7181 GB, free: 12.25 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.291/1.295, allocations: 90.14 MB / 0.8061 GB, free: 125.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.97/23.26, allocations: 19.64 kB / 0.8062 GB, free: 125.4 MB / 0.4981 GB " [Timeout remaining time 637] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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: 27.38577523798449]