Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 115.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001122/0.001122, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.653/1.653, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 59.53 kB / 306.4 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09467/0.09595, allocations: 50.53 MB / 357 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2524/0.3484, allocations: 76.97 MB / 433.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03857/0.387, allocations: 15.6 MB / 449.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01817/0.4052, allocations: 355.1 kB / 449.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01224/0.4176, allocations: 6.051 MB / 455.9 MB, free: 8.531 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008084/0.4257, allocations: 2.623 MB / 458.6 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00485/0.4306, allocations: 2.176 MB / 460.7 MB, free: 3.723 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01337/0.444, allocations: 10.44 MB / 471.2 MB, free: 9.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01198/0.456, allocations: 8.846 MB / 480 MB, free: 360 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006511/0.4625, allocations: 3.256 MB / 483.3 MB, free: 13.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007376/0.4699, allocations: 4.62 MB / 487.9 MB, free: 8.453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002736/0.4727, allocations: 0.7148 MB / 488.6 MB, free: 7.738 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006119/0.4789, allocations: 1.916 MB / 490.5 MB, free: 5.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0066/0.4855, allocations: 3.846 MB / 494.4 MB, free: 1.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008504/0.494, allocations: 4.158 MB / 498.5 MB, free: 13.79 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01654/0.5106, allocations: 12.95 MB / 0.4995 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.5106, allocations: 0 / 0.4995 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5106, allocations: 0 / 0.4995 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000474/0.5111, allocations: 4 kB / 0.4995 GB, free: 0.7969 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02357/0.5347, allocations: 8.911 MB / 0.5082 GB, free: 7.801 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.5348, allocations: 15.91 kB / 0.5082 GB, free: 7.785 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04659/0.5814, allocations: 4.844 MB / 0.5129 GB, free: 2.926 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01671/0.5981, allocations: 6.255 MB / 0.519 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004407/0.5986, allocations: 439.6 kB / 0.5195 GB, free: 12.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002562/0.6012, allocations: 0.578 MB / 0.52 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3695/0.9707, allocations: 17.05 MB / 0.5367 GB, free: 139.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003048/0.9711, allocations: 78.23 kB / 0.5367 GB, free: 139.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001036/0.9721, allocations: 267.5 kB / 0.537 GB, free: 139.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004731/0.9769, allocations: 2.659 MB / 0.5396 GB, free: 138.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03172/1.009, allocations: 14.79 MB / 0.554 GB, free: 133.9 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07612/1.085, allocations: 64.52 MB / 0.617 GB, free: 74.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02047/1.105, allocations: 8.778 MB / 0.6256 GB, free: 65.13 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00527/1.111, allocations: 5.07 MB / 0.6306 GB, free: 60.05 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02608/1.137, allocations: 18.63 MB / 0.6488 GB, free: 41.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.366e-05/1.137, allocations: 64.56 kB / 0.6488 GB, free: 41.15 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.943e-06/1.137, allocations: 3.984 kB / 0.6488 GB, free: 41.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4392/1.576, allocations: 73.97 MB / 0.7211 GB, free: 143.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/1.576, allocations: 371.3 kB / 0.7214 GB, free: 142.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01095/1.587, allocations: 6.365 MB / 0.7276 GB, free: 140.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001272/1.588, allocations: 81.58 kB / 0.7277 GB, free: 140.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003091/1.592, allocations: 4.749 MB / 0.7324 GB, free: 136.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001836/1.593, allocations: 1.376 MB / 0.7337 GB, free: 135.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002927/1.596, allocations: 1.981 MB / 0.7356 GB, free: 134.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.902e-05/1.596, allocations: 308.2 kB / 0.7359 GB, free: 134.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006744/1.603, allocations: 5.988 MB / 0.7418 GB, free: 132.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009448/1.613, allocations: 11.02 MB / 0.7525 GB, free: 123.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01684/1.629, allocations: 17.96 MB / 0.7701 GB, free: 106.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001399/1.63, allocations: 59.94 kB / 0.7701 GB, free: 106.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04078/1.67, allocations: 23.33 MB / 0.7929 GB, free: 82.92 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/1.671, allocations: 82.5 kB / 0.793 GB, free: 82.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001678/1.671, allocations: 172 kB / 0.7932 GB, free: 82.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02041/1.691, allocations: 7.475 MB / 0.8005 GB, free: 75.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007484/1.699, allocations: 2.184 MB / 0.8026 GB, free: 73.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04337/1.742, allocations: 38.1 MB / 0.8398 GB, free: 34.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009352/1.752, allocations: 0.741 MB / 0.8405 GB, free: 33.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001778/1.753, allocations: 0.5234 MB / 0.841 GB, free: 33.23 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.006445/1.76, allocations: 3.438 MB / 0.8444 GB, free: 29.79 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001708/1.762, allocations: 0.5707 MB / 0.845 GB, free: 29.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03114/1.793, allocations: 16.96 MB / 0.8615 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-05/1.793, allocations: 48 kB / 0.8616 GB, free: 12.14 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.939e-05/1.793, allocations: 23 kB / 0.8616 GB, free: 12.12 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-05/1.793, allocations: 15.94 kB / 0.8616 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2497/2.043, allocations: 32.15 MB / 0.893 GB, free: 126.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.689e-05/2.043, allocations: 3.969 kB / 0.893 GB, free: 126.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003177/2.046, allocations: 0.6099 MB / 0.8936 GB, free: 126.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0196/2.065, allocations: 7.033 MB / 0.9005 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009635/2.066, allocations: 66.56 kB / 0.9005 GB, free: 125.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04055/2.107, allocations: 36.29 MB / 0.936 GB, free: 99.85 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/2.107, allocations: 7 kB / 0.936 GB, free: 99.85 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03789/2.145, allocations: 24.6 MB / 0.96 GB, free: 75.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001896/2.147, allocations: 0.6296 MB / 0.9606 GB, free: 75.17 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001986/2.149, allocations: 63.94 kB / 0.9607 GB, free: 75.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005168/2.154, allocations: 455 kB / 0.9611 GB, free: 74.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002085/2.156, allocations: 246.6 kB / 0.9613 GB, free: 74.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005345/2.157, allocations: 95.98 kB / 0.9614 GB, free: 74.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005516/2.162, allocations: 4.04 MB / 0.9654 GB, free: 70.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.61e-07/2.162, allocations: 0 / 0.9654 GB, free: 70.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009435/2.172, allocations: 2.284 MB / 0.9676 GB, free: 68.04 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001243/2.173, allocations: 291.5 kB / 0.9679 GB, free: 67.77 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02869/2.202, allocations: 20.06 MB / 0.9875 GB, free: 47.77 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/2.202, allocations: 4 kB / 0.9875 GB, free: 47.77 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009385/2.211, allocations: 6.703 MB / 0.994 GB, free: 41.06 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006761/2.218, allocations: 0.874 MB / 0.9949 GB, free: 40.22 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03817/2.256, allocations: 23.5 MB / 1.018 GB, free: 16.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007142/2.263, allocations: 5.263 MB / 1.023 GB, free: 11.39 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007843/2.271, allocations: 3.016 MB / 1.026 GB, free: 8.367 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002121/2.273, allocations: 387.4 kB / 1.026 GB, free: 7.992 MB / 462.1 MB Notification: Performance of SimCode: time 1.743e-06/2.273, allocations: 0 / 1.026 GB, free: 7.992 MB / 462.1 MB Notification: Performance of Templates: time 0.3409/2.614, allocations: 112.9 MB / 1.137 GB, free: 75.43 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches