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.001534/0.001534, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00179/0.00179, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 60.69 kB / 306.9 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09937/0.1006, allocations: 50.53 MB / 357.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.1822/0.2828, allocations: 18.03 MB / 375.5 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01262/0.2954, allocations: 6.046 MB / 381.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003886/0.2994, allocations: 145.4 kB / 381.7 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01154/0.3109, allocations: 6.245 MB / 387.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008363/0.3193, allocations: 2.81 MB / 390.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004697/0.3241, allocations: 2.268 MB / 393 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01229/0.3364, allocations: 9.691 MB / 402.7 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01092/0.3473, allocations: 8.428 MB / 411.1 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005999/0.3534, allocations: 3.171 MB / 414.3 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006445/0.3598, allocations: 4.152 MB / 418.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002426/0.3623, allocations: 0.7148 MB / 419.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005102/0.3674, allocations: 1.896 MB / 421.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004767/0.3722, allocations: 3.8 MB / 424.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007206/0.3794, allocations: 4.119 MB / 429 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01364/0.3931, allocations: 12.88 MB / 441.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3931, allocations: 0 / 441.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3931, allocations: 0 / 441.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004034/0.3935, allocations: 0 / 441.9 MB, free: 6.977 MB / 350.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.02282/0.4164, allocations: 8.919 MB / 450.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.4164, allocations: 12.03 kB / 450.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04976/0.4662, allocations: 4.844 MB / 455.6 MB, free: 9.098 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01545/0.4817, allocations: 6.263 MB / 461.9 MB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003725/0.4821, allocations: 431.7 kB / 462.3 MB, free: 2.336 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002185/0.4843, allocations: 0.5819 MB / 462.9 MB, free: 1.754 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03719/0.5215, allocations: 17.05 MB / 479.9 MB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003893/0.5219, allocations: 83.25 kB / 480 MB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002299/0.5242, allocations: 271.8 kB / 480.3 MB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0049/0.5291, allocations: 2.654 MB / 482.9 MB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03306/0.5622, allocations: 14.79 MB / 497.7 MB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4444/1.007, allocations: 64.5 MB / 0.5491 GB, free: 101.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03934/1.046, allocations: 8.788 MB / 0.5576 GB, free: 100.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006089/1.052, allocations: 5.057 MB / 0.5626 GB, free: 98.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02557/1.078, allocations: 18.63 MB / 0.5808 GB, free: 90.43 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.378e-05/1.078, allocations: 68.16 kB / 0.5808 GB, free: 90.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.069e-06/1.078, allocations: 0 / 0.5808 GB, free: 90.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2492/1.327, allocations: 73.99 MB / 0.6531 GB, free: 21.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001572/1.327, allocations: 380.2 kB / 0.6535 GB, free: 21.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01125/1.338, allocations: 6.371 MB / 0.6597 GB, free: 14.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001205/1.34, allocations: 81.7 kB / 0.6598 GB, free: 14.63 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003049/1.343, allocations: 4.741 MB / 0.6644 GB, free: 9.891 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002104/1.345, allocations: 1.383 MB / 0.6657 GB, free: 8.52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003053/1.348, allocations: 1.97 MB / 0.6677 GB, free: 6.539 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.292e-05/1.348, allocations: 301.1 kB / 0.6679 GB, free: 6.242 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006793/1.355, allocations: 5.996 MB / 0.6738 GB, free: 244 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01346/1.368, allocations: 11.02 MB / 0.6846 GB, free: 2.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02338/1.392, allocations: 17.96 MB / 0.7021 GB, free: 14.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000159/1.392, allocations: 48 kB / 0.7021 GB, free: 14.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2509/1.643, allocations: 23.35 MB / 0.7249 GB, free: 163.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/1.643, allocations: 78.22 kB / 0.725 GB, free: 163.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002067/1.643, allocations: 172.8 kB / 0.7252 GB, free: 163.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02238/1.666, allocations: 7.462 MB / 0.7325 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007916/1.674, allocations: 2.189 MB / 0.7346 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04596/1.72, allocations: 38.11 MB / 0.7718 GB, free: 141.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008481/1.728, allocations: 0.7464 MB / 0.7726 GB, free: 141.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001547/1.73, allocations: 0.5234 MB / 0.7731 GB, free: 140.6 MB / 494.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.005757/1.735, allocations: 3.433 MB / 0.7764 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00151/1.737, allocations: 0.5743 MB / 0.777 GB, free: 137.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03083/1.768, allocations: 16.95 MB / 0.7935 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.869e-05/1.768, allocations: 59.98 kB / 0.7936 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.276e-05/1.768, allocations: 16 kB / 0.7936 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.513e-05/1.768, allocations: 15.94 kB / 0.7936 GB, free: 120 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05708/1.825, allocations: 32.15 MB / 0.825 GB, free: 87.49 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.232e-05/1.825, allocations: 0 / 0.825 GB, free: 87.49 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00339/1.829, allocations: 0.6073 MB / 0.8256 GB, free: 86.89 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01988/1.849, allocations: 7.035 MB / 0.8325 GB, free: 79.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000917/1.849, allocations: 63.94 kB / 0.8325 GB, free: 79.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04306/1.893, allocations: 36.31 MB / 0.868 GB, free: 43.25 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/1.893, allocations: 3.938 kB / 0.868 GB, free: 43.25 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04162/1.934, allocations: 24.6 MB / 0.892 GB, free: 18.65 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001996/1.936, allocations: 0.6283 MB / 0.8926 GB, free: 18 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002513/1.939, allocations: 65.14 kB / 0.8927 GB, free: 17.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005959/1.945, allocations: 459.1 kB / 0.8931 GB, free: 17.49 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001962/1.947, allocations: 238.6 kB / 0.8934 GB, free: 17.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009355/1.948, allocations: 96.86 kB / 0.8935 GB, free: 17.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.2223/2.17, allocations: 4.04 MB / 0.8974 GB, free: 162 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.21e-07/2.17, allocations: 0 / 0.8974 GB, free: 162 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009632/2.18, allocations: 2.277 MB / 0.8996 GB, free: 162 MB / 494.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.000965/2.181, allocations: 303.2 kB / 0.8999 GB, free: 162 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.03072/2.211, allocations: 20.06 MB / 0.9195 GB, free: 158.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/2.211, allocations: 0 / 0.9195 GB, free: 158.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008861/2.22, allocations: 6.712 MB / 0.9261 GB, free: 155.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005855/2.226, allocations: 0.8754 MB / 0.9269 GB, free: 155 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02872/2.255, allocations: 20.09 MB / 0.9465 GB, free: 140 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005982/2.261, allocations: 5.26 MB / 0.9517 GB, free: 136 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006925/2.268, allocations: 3.017 MB / 0.9546 GB, free: 133.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001736/2.27, allocations: 381.7 kB / 0.955 GB, free: 133.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.202e-06/2.27, allocations: 0.5469 kB / 0.955 GB, free: 133.6 MB / 494.1 MB Notification: Performance of Templates: time 0.1479/2.418, allocations: 112.9 MB / 1.065 GB, free: 22.63 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/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