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.001659/0.001659, allocations: 111.4 kB / 17.98 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001709/0.001709, allocations: 205.8 kB / 18.92 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 247.1 MB, free: 9.078 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 64.02 kB / 307.1 MB, free: 0.6914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1136, allocations: 50.54 MB / 357.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2517/0.3653, allocations: 76.96 MB / 434.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03967/0.405, allocations: 15.6 MB / 450.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01544/0.4205, allocations: 359.1 kB / 450.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01155/0.4321, allocations: 6.043 MB / 456.6 MB, free: 8.492 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007438/0.4396, allocations: 2.628 MB / 459.3 MB, free: 5.855 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004968/0.4446, allocations: 2.176 MB / 461.4 MB, free: 3.676 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01446/0.4591, allocations: 10.43 MB / 471.9 MB, free: 9.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01198/0.4711, allocations: 8.85 MB / 480.7 MB, free: 316 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006288/0.4774, allocations: 3.26 MB / 484 MB, free: 13.04 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009437/0.4869, allocations: 4.609 MB / 488.6 MB, free: 8.418 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002655/0.4896, allocations: 0.7187 MB / 489.3 MB, free: 7.699 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004642/0.4943, allocations: 1.916 MB / 491.2 MB, free: 5.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005266/0.4996, allocations: 3.85 MB / 495.1 MB, free: 1.922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006478/0.5061, allocations: 4.158 MB / 499.2 MB, free: 13.74 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01292/0.519, allocations: 10.68 MB / 0.4979 GB, free: 3.043 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.355e-06/0.5191, allocations: 0 / 0.4979 GB, free: 3.043 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.5191, allocations: 0 / 0.4979 GB, free: 3.043 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004191/0.5195, allocations: 0 / 0.4979 GB, free: 3.043 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.02375/0.5433, allocations: 8.919 MB / 0.5067 GB, free: 10.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.5434, allocations: 12.03 kB / 0.5067 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04685/0.5902, allocations: 4.836 MB / 0.5114 GB, free: 5.172 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01511/0.6054, allocations: 6.275 MB / 0.5175 GB, free: 14.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000418/0.6058, allocations: 435.7 kB / 0.5179 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00214/0.608, allocations: 0.5819 MB / 0.5185 GB, free: 13.81 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3714/0.9794, allocations: 17.04 MB / 0.5351 GB, free: 139.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004156/0.9799, allocations: 78.14 kB / 0.5352 GB, free: 139.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002283/0.9822, allocations: 267 kB / 0.5355 GB, free: 139.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005543/0.9877, allocations: 2.66 MB / 0.5381 GB, free: 138.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03172/1.02, allocations: 14.78 MB / 0.5525 GB, free: 134.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07361/1.093, allocations: 64.51 MB / 0.6155 GB, free: 75.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02046/1.114, allocations: 8.793 MB / 0.6241 GB, free: 66.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005075/1.119, allocations: 5.062 MB / 0.629 GB, free: 61.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02538/1.144, allocations: 18.64 MB / 0.6472 GB, free: 42.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/1.144, allocations: 68.5 kB / 0.6473 GB, free: 42.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.051e-06/1.144, allocations: 4 kB / 0.6473 GB, free: 42.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.452/1.596, allocations: 73.96 MB / 0.7195 GB, free: 143.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/1.597, allocations: 378 kB / 0.7199 GB, free: 143.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01512/1.612, allocations: 6.362 MB / 0.7261 GB, free: 140.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001333/1.613, allocations: 83.05 kB / 0.7262 GB, free: 140.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003997/1.617, allocations: 4.749 MB / 0.7308 GB, free: 137.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00226/1.619, allocations: 1.381 MB / 0.7322 GB, free: 136.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004702/1.624, allocations: 1.974 MB / 0.7341 GB, free: 135.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.914e-05/1.624, allocations: 304.9 kB / 0.7344 GB, free: 134.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01293/1.637, allocations: 5.993 MB / 0.7402 GB, free: 132.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01732/1.654, allocations: 11.02 MB / 0.751 GB, free: 123.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03081/1.685, allocations: 17.96 MB / 0.7686 GB, free: 107.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002153/1.686, allocations: 52 kB / 0.7686 GB, free: 107.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.07772/1.763, allocations: 23.34 MB / 0.7914 GB, free: 84.23 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001683/1.764, allocations: 80 kB / 0.7915 GB, free: 84.15 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002297/1.764, allocations: 175.9 kB / 0.7916 GB, free: 83.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03288/1.797, allocations: 7.459 MB / 0.7989 GB, free: 76.51 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007032/1.804, allocations: 2.191 MB / 0.8011 GB, free: 74.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0435/1.847, allocations: 38.1 MB / 0.8383 GB, free: 35.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00988/1.857, allocations: 0.7527 MB / 0.839 GB, free: 35.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002174/1.859, allocations: 0.5264 MB / 0.8395 GB, free: 34.54 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.007457/1.867, allocations: 3.434 MB / 0.8429 GB, free: 31.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002259/1.869, allocations: 0.5719 MB / 0.8434 GB, free: 30.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03069/1.9, allocations: 16.95 MB / 0.86 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.05e-05/1.9, allocations: 51.98 kB / 0.86 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.762e-05/1.9, allocations: 16 kB / 0.86 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.125e-05/1.9, allocations: 15.94 kB / 0.8601 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2522/2.152, allocations: 32.15 MB / 0.8915 GB, free: 127.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-05/2.152, allocations: 3.969 kB / 0.8915 GB, free: 127.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003106/2.155, allocations: 0.6058 MB / 0.8921 GB, free: 127.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01976/2.175, allocations: 7.031 MB / 0.8989 GB, free: 126.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001002/2.176, allocations: 63.08 kB / 0.899 GB, free: 126.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04111/2.217, allocations: 36.31 MB / 0.9344 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/2.217, allocations: 11.41 kB / 0.9345 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0384/2.256, allocations: 24.59 MB / 0.9585 GB, free: 77 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001997/2.258, allocations: 0.6295 MB / 0.9591 GB, free: 76.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002069/2.26, allocations: 63.84 kB / 0.9591 GB, free: 76.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00494/2.265, allocations: 443.3 kB / 0.9596 GB, free: 76.17 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001348/2.266, allocations: 250.6 kB / 0.9598 GB, free: 75.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003851/2.267, allocations: 99.11 kB / 0.9599 GB, free: 75.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005546/2.272, allocations: 4.044 MB / 0.9638 GB, free: 71.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.91e-07/2.272, allocations: 3.719 kB / 0.9638 GB, free: 71.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009702/2.282, allocations: 2.276 MB / 0.9661 GB, free: 69.54 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.001255/2.283, allocations: 287.3 kB / 0.9663 GB, free: 69.27 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02773/2.311, allocations: 20.06 MB / 0.9859 GB, free: 49.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/2.311, allocations: 0 / 0.9859 GB, free: 49.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009221/2.32, allocations: 6.703 MB / 0.9925 GB, free: 42.58 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006271/2.327, allocations: 0.8864 MB / 0.9933 GB, free: 41.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02994/2.357, allocations: 24.09 MB / 1.017 GB, free: 17.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006628/2.363, allocations: 5.223 MB / 1.022 GB, free: 12.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002446/2.366, allocations: 447.3 kB / 1.022 GB, free: 11.89 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/2.366, allocations: 0 / 1.022 GB, free: 11.89 MB / 462.1 MB Notification: Performance of Templates: time 0.6275/2.993, allocations: 208.6 MB / 1.226 GB, free: 143.9 MB / 494.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/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