Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001324, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 227.4 MB / 247.1 MB, free: 10.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 62.61 kB / 307.1 MB, free: 0.9141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1072, allocations: 50.54 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2568/0.3641, allocations: 74.84 MB / 432.5 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04006/0.4042, allocations: 14.63 MB / 447.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01773/0.422, allocations: 343.1 kB / 447.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008955/0.431, allocations: 4.269 MB / 451.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007253/0.4383, allocations: 2.316 MB / 454.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002911/0.4412, allocations: 1.073 MB / 455.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01292/0.4542, allocations: 8.668 MB / 463.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008691/0.4629, allocations: 5.571 MB / 469.4 MB, free: 11.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004999/0.4679, allocations: 2.507 MB / 471.9 MB, free: 9.117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005775/0.4737, allocations: 3.72 MB / 475.6 MB, free: 5.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001659/0.4754, allocations: 0.5039 MB / 476.1 MB, free: 4.883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003378/0.4788, allocations: 1.51 MB / 477.6 MB, free: 3.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003718/0.4826, allocations: 2.973 MB / 480.6 MB, free: 400 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004846/0.4874, allocations: 3.36 MB / 484 MB, free: 13.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01028/0.4977, allocations: 8.167 MB / 492.1 MB, free: 4.828 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.4978, allocations: 0 / 492.1 MB, free: 4.828 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4978, allocations: 0 / 492.1 MB, free: 4.828 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003811/0.4982, allocations: 0 / 492.1 MB, free: 4.828 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02004/0.5182, allocations: 7.637 MB / 499.8 MB, free: 13.11 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.5183, allocations: 8.031 kB / 499.8 MB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01537/0.5336, allocations: 3.299 MB / 0.4913 GB, free: 9.785 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.5443, allocations: 4.641 MB / 0.4958 GB, free: 5.062 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003409/0.5447, allocations: 337.2 kB / 0.4961 GB, free: 4.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001884/0.5466, allocations: 475.5 kB / 0.4966 GB, free: 4.266 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02997/0.5766, allocations: 14.56 MB / 0.5108 GB, free: 4.777 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002757/0.5769, allocations: 75.27 kB / 0.5109 GB, free: 4.703 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001085/0.578, allocations: 219.8 kB / 0.5111 GB, free: 4.488 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005922/0.5839, allocations: 2.84 MB / 0.5139 GB, free: 1.637 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02847/0.6124, allocations: 13.21 MB / 0.5268 GB, free: 4.406 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.266/0.8785, allocations: 58.5 MB / 0.5839 GB, free: 104.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0163/0.8948, allocations: 7.739 MB / 0.5914 GB, free: 99.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00514/0.9, allocations: 5.047 MB / 0.5964 GB, free: 95.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01729/0.9173, allocations: 12.8 MB / 0.6089 GB, free: 82.29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.9174, allocations: 68.69 kB / 0.6089 GB, free: 82.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.122e-06/0.9174, allocations: 0 / 0.6089 GB, free: 82.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.024/2.942, allocations: 411.6 MB / 1.011 GB, free: 34.63 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.157e-05/2.942, allocations: 265.6 kB / 1.011 GB, free: 34.32 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006566/2.949, allocations: 5.443 MB / 1.016 GB, free: 28.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00196/2.951, allocations: 113.7 kB / 1.017 GB, free: 28.78 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002157/2.953, allocations: 3.937 MB / 1.02 GB, free: 24.86 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002914/2.956, allocations: 2.009 MB / 1.022 GB, free: 22.87 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005018/2.961, allocations: 2.174 MB / 1.025 GB, free: 20.68 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.022e-05/2.961, allocations: 308.2 kB / 1.025 GB, free: 20.38 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1816/3.142, allocations: 11.06 MB / 1.036 GB, free: 143 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01892/3.161, allocations: 15.23 MB / 1.05 GB, free: 133.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03164/3.193, allocations: 27.46 MB / 1.077 GB, free: 117.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001982/3.193, allocations: 37.31 kB / 1.077 GB, free: 117.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.502/3.695, allocations: 141.1 MB / 1.215 GB, free: 125.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001626/3.695, allocations: 70.66 kB / 1.215 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002296/3.696, allocations: 138 kB / 1.215 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07772/3.773, allocations: 34.74 MB / 1.249 GB, free: 115.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004694/3.778, allocations: 1.569 MB / 1.251 GB, free: 115.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.445/4.223, allocations: 203.7 MB / 1.45 GB, free: 97.76 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01431/4.238, allocations: 1.721 MB / 1.451 GB, free: 96.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002968/4.241, allocations: 0.5368 MB / 1.452 GB, free: 96.28 MB / 478.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.008554/4.249, allocations: 3.099 MB / 1.455 GB, free: 93.77 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002592/4.252, allocations: 0.5716 MB / 1.455 GB, free: 93.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5032/4.755, allocations: 136.7 MB / 1.589 GB, free: 123.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.951e-05/4.755, allocations: 57.38 kB / 1.589 GB, free: 123.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001378/4.755, allocations: 58.72 kB / 1.589 GB, free: 123.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001143/4.755, allocations: 23.91 kB / 1.589 GB, free: 123.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5586/5.314, allocations: 206.3 MB / 1.791 GB, free: 94.21 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.645e-05/5.314, allocations: 8 kB / 1.791 GB, free: 94.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/5.316, allocations: 331.1 kB / 1.791 GB, free: 93.89 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06959/5.385, allocations: 33.48 MB / 1.824 GB, free: 65.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00214/5.387, allocations: 103.2 kB / 1.824 GB, free: 65.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4266/5.814, allocations: 186.3 MB / 2.006 GB, free: 53.26 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.227e-06/5.814, allocations: 11.19 kB / 2.006 GB, free: 53.25 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5139/6.328, allocations: 152.6 MB / 2.155 GB, free: 72.67 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001907/6.33, allocations: 0.6261 MB / 2.155 GB, free: 72.34 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004129/6.334, allocations: 107.1 kB / 2.155 GB, free: 72.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01032/6.344, allocations: 1.486 MB / 2.157 GB, free: 70.75 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004746/6.349, allocations: 497.5 kB / 2.157 GB, free: 70.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001785/6.351, allocations: 145.4 kB / 2.157 GB, free: 70.13 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005504/6.356, allocations: 3.463 MB / 2.161 GB, free: 66.69 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.91e-07/6.357, allocations: 0 / 2.161 GB, free: 66.69 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01629/6.373, allocations: 3.844 MB / 2.165 GB, free: 62.85 MB / 478.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.002261/6.375, allocations: 250.6 kB / 2.165 GB, free: 62.62 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.06365/6.439, allocations: 38.87 MB / 2.203 GB, free: 23.95 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/6.439, allocations: 0 / 2.203 GB, free: 23.95 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.245/6.684, allocations: 20.55 MB / 2.223 GB, free: 133 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009229/6.693, allocations: 0.7851 MB / 2.224 GB, free: 132.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05088/6.744, allocations: 30.99 MB / 2.254 GB, free: 125.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007765/6.752, allocations: 5.064 MB / 2.259 GB, free: 124.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001362/6.753, allocations: 351.2 kB / 2.259 GB, free: 124.8 MB / 478.1 MB Notification: Performance of SimCode: time 2.104e-06/6.753, allocations: 0 / 2.259 GB, free: 124.8 MB / 478.1 MB Notification: Performance of Templates: time 0.5109/7.264, allocations: 255.3 MB / 2.508 GB, free: 43.19 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches