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.001185/0.001185, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.9 MB, free: 8.988 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001248, allocations: 60.16 kB / 306.9 MB, free: 0.7891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09259/0.09385, allocations: 50.53 MB / 357.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2237/0.3176, allocations: 76.96 MB / 434.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03619/0.3539, allocations: 15.71 MB / 450.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01911/0.373, allocations: 359.1 kB / 450.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0116/0.3847, allocations: 6.277 MB / 456.7 MB, free: 8.117 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008137/0.3929, allocations: 2.656 MB / 459.4 MB, free: 5.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004923/0.3978, allocations: 2.185 MB / 461.6 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01704/0.4149, allocations: 13.83 MB / 475.4 MB, free: 5.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01157/0.4265, allocations: 8.256 MB / 483.7 MB, free: 13.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00565/0.4322, allocations: 2.823 MB / 486.5 MB, free: 10.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00661/0.4389, allocations: 4.437 MB / 490.9 MB, free: 5.805 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002008/0.4409, allocations: 500 kB / 491.4 MB, free: 5.316 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004434/0.4453, allocations: 1.771 MB / 493.2 MB, free: 3.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004882/0.4503, allocations: 3.612 MB / 496.8 MB, free: 15.92 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00732/0.4576, allocations: 3.9 MB / 0.489 GB, free: 12 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01145/0.4691, allocations: 10.57 MB / 0.4993 GB, free: 1.406 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4691, allocations: 0 / 0.4993 GB, free: 1.406 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4691, allocations: 0 / 0.4993 GB, free: 1.406 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004686/0.4696, allocations: 4 kB / 0.4993 GB, free: 1.402 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.02286/0.4925, allocations: 8.915 MB / 0.508 GB, free: 8.402 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.4925, allocations: 8.031 kB / 0.508 GB, free: 8.395 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04226/0.5348, allocations: 4.844 MB / 0.5127 GB, free: 3.535 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01767/0.5525, allocations: 6.275 MB / 0.5189 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004402/0.553, allocations: 431.7 kB / 0.5193 GB, free: 12.76 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002744/0.5558, allocations: 0.578 MB / 0.5198 GB, free: 12.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3939/0.9497, allocations: 17.05 MB / 0.5365 GB, free: 139.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003165/0.95, allocations: 79.02 kB / 0.5366 GB, free: 139.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001024/0.9511, allocations: 263.8 kB / 0.5368 GB, free: 139.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004814/0.9559, allocations: 2.662 MB / 0.5394 GB, free: 138.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03047/0.9864, allocations: 14.78 MB / 0.5538 GB, free: 134.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06808/1.055, allocations: 64.51 MB / 0.6168 GB, free: 74.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01992/1.074, allocations: 8.789 MB / 0.6254 GB, free: 65.64 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004888/1.079, allocations: 5.073 MB / 0.6304 GB, free: 60.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02285/1.102, allocations: 18.63 MB / 0.6486 GB, free: 41.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.759e-05/1.102, allocations: 72.5 kB / 0.6486 GB, free: 41.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.42e-06/1.102, allocations: 0 / 0.6486 GB, free: 41.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4391/1.541, allocations: 73.97 MB / 0.7209 GB, free: 143.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/1.542, allocations: 381.5 kB / 0.7212 GB, free: 142.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/1.552, allocations: 6.358 MB / 0.7275 GB, free: 140.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001061/1.553, allocations: 90.59 kB / 0.7275 GB, free: 140.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002632/1.556, allocations: 4.748 MB / 0.7322 GB, free: 136.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001721/1.558, allocations: 1.375 MB / 0.7335 GB, free: 135.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002849/1.56, allocations: 1.977 MB / 0.7355 GB, free: 135 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.314e-05/1.561, allocations: 301.1 kB / 0.7357 GB, free: 134.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006938/1.567, allocations: 5.992 MB / 0.7416 GB, free: 132.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0097/1.577, allocations: 11.03 MB / 0.7524 GB, free: 123.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01791/1.595, allocations: 17.96 MB / 0.7699 GB, free: 106.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002191/1.595, allocations: 48 kB / 0.7699 GB, free: 106.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04401/1.639, allocations: 23.34 MB / 0.7927 GB, free: 83.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002377/1.64, allocations: 76 kB / 0.7928 GB, free: 83.26 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002964/1.64, allocations: 172 kB / 0.793 GB, free: 83.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02061/1.661, allocations: 7.443 MB / 0.8002 GB, free: 75.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007229/1.668, allocations: 2.187 MB / 0.8024 GB, free: 73.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0427/1.711, allocations: 35.58 MB / 0.8371 GB, free: 37.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009283/1.72, allocations: 0.7371 MB / 0.8378 GB, free: 36.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001883/1.722, allocations: 0.5312 MB / 0.8384 GB, free: 36.22 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.00724/1.729, allocations: 3.438 MB / 0.8417 GB, free: 32.77 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002059/1.731, allocations: 0.5708 MB / 0.8423 GB, free: 32.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03131/1.763, allocations: 16.96 MB / 0.8588 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.533e-05/1.763, allocations: 48 kB / 0.8589 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.36e-05/1.763, allocations: 19.31 kB / 0.8589 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.519e-05/1.763, allocations: 19.92 kB / 0.8589 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2663/2.029, allocations: 32.14 MB / 0.8903 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.746e-05/2.029, allocations: 6.656 kB / 0.8903 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003054/2.032, allocations: 0.6041 MB / 0.8909 GB, free: 128.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01954/2.052, allocations: 7.114 MB / 0.8978 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009069/2.053, allocations: 63.69 kB / 0.8979 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03791/2.091, allocations: 33.84 MB / 0.931 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/2.091, allocations: 15.39 kB / 0.931 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03599/2.127, allocations: 24.6 MB / 0.955 GB, free: 80.76 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002618/2.129, allocations: 0.6279 MB / 0.9556 GB, free: 80.42 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002769/2.132, allocations: 63.88 kB / 0.9557 GB, free: 80.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005701/2.138, allocations: 447 kB / 0.9561 GB, free: 79.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001625/2.14, allocations: 252.1 kB / 0.9563 GB, free: 79.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006605/2.14, allocations: 88 kB / 0.9564 GB, free: 79.59 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006335/2.147, allocations: 4.04 MB / 0.9604 GB, free: 75.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/2.147, allocations: 0 / 0.9604 GB, free: 75.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009899/2.157, allocations: 2.291 MB / 0.9626 GB, free: 73.29 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.001179/2.158, allocations: 278.3 kB / 0.9629 GB, free: 73.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01909/2.177, allocations: 14.85 MB / 0.9774 GB, free: 58.25 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.229e-05/2.177, allocations: 0 / 0.9774 GB, free: 58.25 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0093/2.186, allocations: 6.71 MB / 0.9839 GB, free: 51.54 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007357/2.194, allocations: 0.8288 MB / 0.9847 GB, free: 50.74 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03372/2.227, allocations: 24.09 MB / 1.008 GB, free: 26.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008516/2.236, allocations: 5.212 MB / 1.013 GB, free: 21.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002742/2.239, allocations: 443.4 kB / 1.014 GB, free: 20.93 MB / 462.1 MB Notification: Performance of SimCode: time 7.91e-07/2.239, allocations: 0 / 1.014 GB, free: 20.93 MB / 462.1 MB Notification: Performance of Templates: time 0.457/2.696, allocations: 208.6 MB / 1.217 GB, free: 14.77 MB / 0.4982 GB 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.0.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