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.00115/0.00115, allocations: 114 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.001207/0.001207, 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.295/1.295, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 62 kB / 306.6 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07896/0.08029, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1536/0.2339, allocations: 34.51 MB / 391.6 MB, free: 1.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01579/0.2498, allocations: 7.75 MB / 399.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004448/0.2542, allocations: 145.7 kB / 399.5 MB, free: 12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005211/0.2595, allocations: 1.978 MB / 401.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005381/0.2649, allocations: 1.504 MB / 403 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002181/0.2671, allocations: 0.6499 MB / 403.6 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005458/0.2726, allocations: 3.413 MB / 407 MB, free: 8.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002987/0.2756, allocations: 2.833 MB / 409.9 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001867/0.2775, allocations: 1.27 MB / 411.1 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00244/0.2799, allocations: 1.943 MB / 413.1 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005849/0.2805, allocations: 264 kB / 413.3 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00171/0.2822, allocations: 1.131 MB / 414.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001301/0.2836, allocations: 1.57 MB / 416 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001434/0.285, allocations: 1.872 MB / 417.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004466/0.2895, allocations: 5.728 MB / 423.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2895, allocations: 4 kB / 423.6 MB, free: 8.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.2895, allocations: 0 / 423.6 MB, free: 8.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.794e-05/0.2895, allocations: 3.938 kB / 423.7 MB, free: 8.93 MB / 334.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.005647/0.2952, allocations: 4.113 MB / 427.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.2952, allocations: 12.03 kB / 427.8 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006328/0.2959, allocations: 0.6413 MB / 428.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00589/0.3018, allocations: 1.868 MB / 430.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002992/0.3048, allocations: 2.069 MB / 432.4 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001424/0.3049, allocations: 205.2 kB / 432.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004215/0.3054, allocations: 271.8 kB / 432.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01415/0.3195, allocations: 10.01 MB / 442.8 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-05/0.3196, allocations: 43.59 kB / 442.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000338/0.32, allocations: 131.9 kB / 443 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002763/0.3227, allocations: 1.852 MB / 444.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01496/0.3377, allocations: 8.56 MB / 453.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03334/0.3711, allocations: 36.85 MB / 490.3 MB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008575/0.3797, allocations: 3.92 MB / 494.2 MB, free: 348 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001963/0.3816, allocations: 1.802 MB / 496 MB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008821/0.3905, allocations: 7.607 MB / 0.4918 GB, free: 6.617 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.3905, allocations: 55.56 kB / 0.4918 GB, free: 6.555 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 3.086e-06/0.3905, allocations: 0 / 0.4918 GB, free: 6.555 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.04521/0.4357, allocations: 17.55 MB / 0.509 GB, free: 4.879 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.937e-05/0.4358, allocations: 145.5 kB / 0.5091 GB, free: 4.707 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003712/0.4395, allocations: 3.477 MB / 0.5125 GB, free: 1.227 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.4397, allocations: 49.7 kB / 0.5126 GB, free: 1.172 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.4412, allocations: 2.732 MB / 0.5152 GB, free: 14.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004723/0.4416, allocations: 0.648 MB / 0.5159 GB, free: 13.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001204/0.4428, allocations: 1.111 MB / 0.5169 GB, free: 12.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.592e-05/0.4429, allocations: 305.1 kB / 0.5172 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002639/0.4456, allocations: 1.951 MB / 0.5191 GB, free: 10.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004416/0.45, allocations: 5.373 MB / 0.5244 GB, free: 3.273 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1386/0.5887, allocations: 7.942 MB / 0.5321 GB, free: 137.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.006e-05/0.5888, allocations: 34.12 kB / 0.5322 GB, free: 137.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01246/0.6012, allocations: 8.171 MB / 0.5402 GB, free: 135.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.867e-05/0.6013, allocations: 57.36 kB / 0.5402 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-05/0.6014, allocations: 121.2 kB / 0.5403 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003735/0.6051, allocations: 1.301 MB / 0.5416 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003247/0.6084, allocations: 1.262 MB / 0.5428 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007125/0.6155, allocations: 6.551 MB / 0.5492 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002958/0.6185, allocations: 303.9 kB / 0.5495 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002899/0.6188, allocations: 340.5 kB / 0.5498 GB, free: 131.8 MB / 446.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.001767/0.6206, allocations: 1.813 MB / 0.5516 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003225/0.6209, allocations: 302.2 kB / 0.5519 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005608/0.6265, allocations: 3.387 MB / 0.5552 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/0.6266, allocations: 17.38 kB / 0.5552 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.6266, allocations: 3.781 kB / 0.5552 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.6266, allocations: 11.23 kB / 0.5552 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009949/0.6365, allocations: 7.619 MB / 0.5627 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.6366, allocations: 3.938 kB / 0.5627 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009461/0.6375, allocations: 250.4 kB / 0.5629 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00305/0.6406, allocations: 1.12 MB / 0.564 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-05/0.6407, allocations: 35.83 kB / 0.564 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006023/0.6467, allocations: 6.17 MB / 0.5701 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.6467, allocations: 0 / 0.5701 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00696/0.6537, allocations: 5.754 MB / 0.5757 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002919/0.654, allocations: 345.1 kB / 0.576 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002909/0.6543, allocations: 28 kB / 0.576 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.6554, allocations: 95.86 kB / 0.5761 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002056/0.6556, allocations: 92.81 kB / 0.5762 GB, free: 112.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-05/0.6558, allocations: 44 kB / 0.5763 GB, free: 112.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00188/0.6576, allocations: 2.154 MB / 0.5784 GB, free: 110.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6576, allocations: 0 / 0.5784 GB, free: 110.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00305/0.6607, allocations: 0.8918 MB / 0.5792 GB, free: 109.8 MB / 446.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.007271/0.668, allocations: 6.393 MB / 0.5855 GB, free: 103.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005977/0.674, allocations: 5.552 MB / 0.5909 GB, free: 97.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.674, allocations: 192 / 0.5909 GB, free: 97.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.6756, allocations: 1.554 MB / 0.5924 GB, free: 96.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/0.6771, allocations: 355.4 kB / 0.5928 GB, free: 95.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04295/0.7201, allocations: 46.97 MB / 0.6386 GB, free: 42.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001886/0.722, allocations: 2.85 MB / 0.6414 GB, free: 39.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003066/0.7251, allocations: 1.699 MB / 0.6431 GB, free: 37.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001312/0.7264, allocations: 1.585 MB / 0.6446 GB, free: 36.02 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.7264, allocations: 0 / 0.6446 GB, free: 36.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9338/1.66, allocations: 63.3 MB / 0.7064 GB, free: 156 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001645/1.66, allocations: 249.1 kB / 0.7067 GB, free: 155.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.634/5.294, allocations: 2.812 kB / 0.7067 GB, free: 155.7 MB / 462.1 MB (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.0.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