Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009335/0.0009334, allocations: 93.25 kB / 17.3 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 172.9 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000444/0.0004441, allocations: 19.94 kB / 281.4 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1066, allocations: 47.58 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2707/0.3774, allocations: 73.6 MB / 402.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04052/0.418, allocations: 14.91 MB / 417.5 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02019/0.4382, allocations: 335.4 kB / 417.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002897/0.4412, allocations: 0.603 MB / 418.4 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008573/0.4498, allocations: 2.404 MB / 420.8 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003434/0.4532, allocations: 1.063 MB / 421.9 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01575/0.469, allocations: 10.51 MB / 432.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01389/0.4829, allocations: 7.38 MB / 439.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005386/0.4884, allocations: 1.89 MB / 441.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006284/0.4947, allocations: 3.187 MB / 444.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001854/0.4966, allocations: 216 kB / 445.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00396/0.5006, allocations: 1.273 MB / 446.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003773/0.5044, allocations: 2.645 MB / 449 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004343/0.5087, allocations: 2.987 MB / 452 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01138/0.5201, allocations: 9.655 MB / 461.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.5202, allocations: 4 kB / 461.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.5202, allocations: 0 / 461.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004122/0.5206, allocations: 0 / 461.6 MB, free: 14.54 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.0204/0.5411, allocations: 6.323 MB / 467.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.5411, allocations: 12.02 kB / 468 MB, free: 8.164 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01607/0.5572, allocations: 3.239 MB / 471.2 MB, free: 4.914 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/0.569, allocations: 4.881 MB / 476.1 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003167/0.5693, allocations: 340.1 kB / 476.4 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001949/0.5713, allocations: 471 kB / 476.9 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02755/0.5988, allocations: 14.6 MB / 491.5 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002471/0.5991, allocations: 71.28 kB / 491.5 MB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008371/0.6, allocations: 214.2 kB / 491.7 MB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005661/0.6056, allocations: 2.83 MB / 494.6 MB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03164/0.6373, allocations: 13.25 MB / 0.4959 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3252/0.9626, allocations: 58.51 MB / 0.5531 GB, free: 129.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01837/0.981, allocations: 7.743 MB / 0.5606 GB, free: 129.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005686/0.9868, allocations: 5.053 MB / 0.5656 GB, free: 127.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0204/1.007, allocations: 12.8 MB / 0.5781 GB, free: 121.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.79e-05/1.007, allocations: 73.89 kB / 0.5781 GB, free: 121.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.863e-06/1.007, allocations: 0 / 0.5781 GB, free: 121.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.093/3.1, allocations: 407.3 MB / 0.9758 GB, free: 107 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/3.1, allocations: 269.1 kB / 0.9761 GB, free: 106.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007819/3.108, allocations: 5.497 MB / 0.9815 GB, free: 101.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002015/3.11, allocations: 109.7 kB / 0.9816 GB, free: 101.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002498/3.113, allocations: 3.944 MB / 0.9854 GB, free: 98.04 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003172/3.116, allocations: 2.005 MB / 0.9874 GB, free: 96.05 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002298/3.118, allocations: 0.8281 MB / 0.9882 GB, free: 95.21 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/3.118, allocations: 309.1 kB / 0.9885 GB, free: 94.91 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01436/3.132, allocations: 11.06 MB / 0.9993 GB, free: 83.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01604/3.149, allocations: 15.24 MB / 1.014 GB, free: 66.76 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02987/3.178, allocations: 27.46 MB / 1.041 GB, free: 37.47 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000138/3.179, allocations: 40 kB / 1.041 GB, free: 37.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5871/3.766, allocations: 141.1 MB / 1.179 GB, free: 64.19 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/3.766, allocations: 67.98 kB / 1.179 GB, free: 64.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001669/3.766, allocations: 139.4 kB / 1.179 GB, free: 63.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07855/3.845, allocations: 34.76 MB / 1.213 GB, free: 29.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005213/3.85, allocations: 1.565 MB / 1.214 GB, free: 27.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7661/4.616, allocations: 190.7 MB / 1.401 GB, free: 133.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01463/4.631, allocations: 1.721 MB / 1.402 GB, free: 133.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002926/4.634, allocations: 0.5375 MB / 1.403 GB, free: 133.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.007967/4.642, allocations: 3.099 MB / 1.406 GB, free: 132.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002283/4.644, allocations: 0.5751 MB / 1.407 GB, free: 132.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3325/4.977, allocations: 136.7 MB / 1.54 GB, free: 29.34 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001407/4.977, allocations: 65.16 kB / 1.54 GB, free: 29.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002442/4.977, allocations: 56 kB / 1.54 GB, free: 29.22 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001708/4.977, allocations: 27.91 kB / 1.54 GB, free: 29.19 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8751/5.852, allocations: 206.2 MB / 1.741 GB, free: 133.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.587e-05/5.852, allocations: 7.656 kB / 1.742 GB, free: 133.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001679/5.854, allocations: 335.3 kB / 1.742 GB, free: 133.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07747/5.932, allocations: 33.91 MB / 1.775 GB, free: 131.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001707/5.933, allocations: 103 kB / 1.775 GB, free: 131.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4661/6.399, allocations: 173.6 MB / 1.945 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/6.399, allocations: 13.91 kB / 1.945 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5961/6.996, allocations: 152.5 MB / 2.093 GB, free: 126.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007959/7.004, allocations: 3.01 MB / 2.096 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003254/7.007, allocations: 102.8 kB / 2.097 GB, free: 125.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01102/7.018, allocations: 1.486 MB / 2.098 GB, free: 124.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004817/7.023, allocations: 0.4896 MB / 2.098 GB, free: 124.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001342/7.024, allocations: 143.8 kB / 2.099 GB, free: 124.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005729/7.03, allocations: 3.504 MB / 2.102 GB, free: 122.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.71e-07/7.03, allocations: 0 / 2.102 GB, free: 122.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01549/7.045, allocations: 3.863 MB / 2.106 GB, free: 121 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001954/7.047, allocations: 240.4 kB / 2.106 GB, free: 120.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.05646/7.104, allocations: 33.71 MB / 2.139 GB, free: 87.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/7.104, allocations: 0 / 2.139 GB, free: 87.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03853/7.143, allocations: 20.52 MB / 2.159 GB, free: 66.68 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01199/7.155, allocations: 0.7511 MB / 2.16 GB, free: 65.94 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04058/7.195, allocations: 30.5 MB / 2.189 GB, free: 35.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005742/7.201, allocations: 5.124 MB / 2.194 GB, free: 30.24 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004907/7.206, allocations: 2.053 MB / 2.196 GB, free: 28.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000849/7.207, allocations: 307.4 kB / 2.197 GB, free: 27.88 MB / 462.1 MB Notification: Performance of SimCode: time 8.42e-07/7.207, allocations: 0 / 2.197 GB, free: 27.88 MB / 462.1 MB Notification: Performance of Templates: time 0.7951/8.002, allocations: 262.2 MB / 2.453 GB, free: 80.31 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches