Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002175/0.002175, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001666/0.001666, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 63.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2586, allocations: 50.54 MB / 408.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01221/0.2709, allocations: 10.25 MB / 419.1 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008141/0.2791, allocations: 3.89 MB / 423 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.2802, allocations: 55.88 kB / 423 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003921/0.2842, allocations: 2.067 MB / 425.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004537/0.2888, allocations: 1.607 MB / 426.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001534/0.2903, allocations: 0.6862 MB / 427.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004662/0.295, allocations: 3.4 MB / 430.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003694/0.2987, allocations: 2.676 MB / 433.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001861/0.3006, allocations: 1.254 MB / 434.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002422/0.303, allocations: 1.752 MB / 436.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006947/0.3037, allocations: 264 kB / 436.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002171/0.3059, allocations: 1.104 MB / 437.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001651/0.3076, allocations: 1.554 MB / 439.4 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00258/0.3102, allocations: 1.852 MB / 441.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007301/0.3175, allocations: 5.917 MB / 447.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3175, allocations: 0 / 447.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3176, allocations: 4 kB / 447.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001524/0.3177, allocations: 0 / 447.2 MB, free: 10.96 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.008727/0.3265, allocations: 4.228 MB / 451.4 MB, free: 6.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.3265, allocations: 12.03 kB / 451.4 MB, free: 6.648 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009046/0.3274, allocations: 0.6335 MB / 452 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007239/0.3347, allocations: 1.89 MB / 453.9 MB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004446/0.3392, allocations: 2.116 MB / 456 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001773/0.3394, allocations: 209.2 kB / 456.2 MB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006359/0.34, allocations: 267.9 kB / 456.5 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01982/0.3598, allocations: 10 MB / 466.5 MB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/0.36, allocations: 39.64 kB / 466.5 MB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004225/0.3604, allocations: 135.9 kB / 466.7 MB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003171/0.3636, allocations: 1.852 MB / 468.5 MB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01899/0.3826, allocations: 8.563 MB / 477.1 MB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04743/0.4301, allocations: 36.76 MB / 0.5018 GB, free: 6.398 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01044/0.4405, allocations: 3.901 MB / 0.5056 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002631/0.4432, allocations: 1.815 MB / 0.5074 GB, free: 488 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01148/0.4547, allocations: 7.62 MB / 0.5148 GB, free: 8.559 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.95e-05/0.4548, allocations: 51.5 kB / 0.5149 GB, free: 8.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 5.11e-06/0.4549, allocations: 4 kB / 0.5149 GB, free: 8.496 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05562/0.5105, allocations: 17.75 MB / 0.5322 GB, free: 6.633 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.5106, allocations: 145.5 kB / 0.5324 GB, free: 6.461 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005159/0.5158, allocations: 3.478 MB / 0.5358 GB, free: 2.98 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002858/0.5161, allocations: 53.7 kB / 0.5358 GB, free: 2.922 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002282/0.5184, allocations: 2.842 MB / 0.5386 GB, free: 56 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2004/0.7188, allocations: 0.6618 MB / 0.5392 GB, free: 126.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002627/0.7215, allocations: 1.122 MB / 0.5403 GB, free: 126.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.909e-05/0.7215, allocations: 305.2 kB / 0.5406 GB, free: 125.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003003/0.7245, allocations: 1.958 MB / 0.5425 GB, free: 125.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003731/0.7283, allocations: 5.383 MB / 0.5478 GB, free: 120 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006823/0.7351, allocations: 7.947 MB / 0.5555 GB, free: 113.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.348e-05/0.7352, allocations: 31.16 kB / 0.5556 GB, free: 113.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01369/0.7489, allocations: 8.191 MB / 0.5636 GB, free: 108.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.035e-05/0.749, allocations: 56 kB / 0.5636 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001135/0.7492, allocations: 120 kB / 0.5637 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003815/0.753, allocations: 1.302 MB / 0.565 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00333/0.7563, allocations: 1.262 MB / 0.5662 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007273/0.7636, allocations: 6.538 MB / 0.5726 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003646/0.7673, allocations: 308.5 kB / 0.5729 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005839/0.7679, allocations: 343.7 kB / 0.5733 GB, free: 99.76 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (681): * Single equations (assignments): 677 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002915/0.7708, allocations: 1.812 MB / 0.575 GB, free: 98.01 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000469/0.7713, allocations: 325.8 kB / 0.5753 GB, free: 97.69 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006129/0.7774, allocations: 3.384 MB / 0.5786 GB, free: 94.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.963e-05/0.7775, allocations: 20 kB / 0.5787 GB, free: 94.28 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.7775, allocations: 6 kB / 0.5787 GB, free: 94.28 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.7775, allocations: 3.984 kB / 0.5787 GB, free: 94.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01192/0.7894, allocations: 7.585 MB / 0.5861 GB, free: 86.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/0.7895, allocations: 0 / 0.5861 GB, free: 86.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.7908, allocations: 243.7 kB / 0.5863 GB, free: 86.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003365/0.7941, allocations: 1.116 MB / 0.5874 GB, free: 85.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001623/0.7943, allocations: 32 kB / 0.5874 GB, free: 85.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007072/0.8014, allocations: 6.181 MB / 0.5935 GB, free: 78.97 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.8014, allocations: 0 / 0.5935 GB, free: 78.97 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008177/0.8096, allocations: 5.766 MB / 0.5991 GB, free: 73.17 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009043/0.8106, allocations: 363.8 kB / 0.5994 GB, free: 72.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005155/0.8111, allocations: 31.98 kB / 0.5995 GB, free: 72.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.8124, allocations: 87.88 kB / 0.5996 GB, free: 72.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000311/0.8127, allocations: 98.97 kB / 0.5996 GB, free: 72.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/0.8128, allocations: 40 kB / 0.5997 GB, free: 72.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002518/0.8154, allocations: 2.154 MB / 0.6018 GB, free: 70.41 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8154, allocations: 0 / 0.6018 GB, free: 70.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003761/0.8191, allocations: 0.8929 MB / 0.6027 GB, free: 69.52 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008617/0.8278, allocations: 6.389 MB / 0.6089 GB, free: 63.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006588/0.8344, allocations: 4.825 MB / 0.6136 GB, free: 58.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.8344, allocations: 0 / 0.6136 GB, free: 58.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001876/0.8363, allocations: 1.556 MB / 0.6151 GB, free: 56.74 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/0.8384, allocations: 358 kB / 0.6155 GB, free: 56.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05131/0.8897, allocations: 41.29 MB / 0.6558 GB, free: 9.84 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002886/0.8926, allocations: 2.85 MB / 0.6586 GB, free: 6.953 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003167/0.8958, allocations: 1.704 MB / 0.6602 GB, free: 5.246 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001745/0.8976, allocations: 1.573 MB / 0.6618 GB, free: 3.672 MB / 462.1 MB Notification: Performance of SimCode: time 1.953e-06/0.8976, allocations: 0 / 0.6618 GB, free: 3.672 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3029/1.2, allocations: 60.01 MB / 0.7204 GB, free: 8.059 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.66/22.86, allocations: 15.73 kB / 0.7204 GB, free: 8.047 MB / 0.5138 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches