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.001312/0.001313, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.00144, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 227.4 MB / 246.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.88 kB / 306.3 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08126/0.08243, allocations: 50.54 MB / 356.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1699/0.2524, allocations: 34.52 MB / 391.4 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01549/0.2679, allocations: 7.852 MB / 399.3 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006109/0.2741, allocations: 145.3 kB / 399.4 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004385/0.2785, allocations: 2.051 MB / 401.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004364/0.2829, allocations: 1.497 MB / 402.9 MB, free: 10 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001842/0.2847, allocations: 0.634 MB / 403.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005282/0.29, allocations: 4.778 MB / 408.4 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003178/0.2932, allocations: 2.686 MB / 411 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001762/0.295, allocations: 1.105 MB / 412.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002305/0.2973, allocations: 1.877 MB / 414 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006569/0.298, allocations: 192 kB / 414.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002019/0.3, allocations: 1.108 MB / 415.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001542/0.3016, allocations: 1.515 MB / 416.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002229/0.3038, allocations: 1.801 MB / 418.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005/0.3088, allocations: 5.634 MB / 424.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3089, allocations: 0 / 424.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3089, allocations: 0 / 424.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001437/0.309, allocations: 0 / 424.3 MB, free: 8.066 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.006934/0.3159, allocations: 4.118 MB / 428.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.316, allocations: 16.02 kB / 428.4 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007062/0.3167, allocations: 0.6335 MB / 429 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006184/0.3229, allocations: 1.875 MB / 430.9 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003506/0.3264, allocations: 2.073 MB / 433 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.3266, allocations: 205.2 kB / 433.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004217/0.327, allocations: 275.8 kB / 433.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01582/0.3428, allocations: 10 MB / 443.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.771e-05/0.343, allocations: 35.59 kB / 443.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003308/0.3433, allocations: 139.9 kB / 443.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002819/0.3461, allocations: 1.848 MB / 445.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01556/0.3617, allocations: 8.564 MB / 454 MB, free: 9.473 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03941/0.4011, allocations: 36.85 MB / 490.9 MB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009705/0.4109, allocations: 3.912 MB / 494.8 MB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002445/0.4134, allocations: 1.814 MB / 496.6 MB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01096/0.4243, allocations: 7.603 MB / 0.4924 GB, free: 5.746 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.4244, allocations: 59.44 kB / 0.4925 GB, free: 5.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.318e-06/0.4244, allocations: 0 / 0.4925 GB, free: 5.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05243/0.4769, allocations: 17.53 MB / 0.5096 GB, free: 4.02 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/0.477, allocations: 149.5 kB / 0.5097 GB, free: 3.844 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005165/0.4822, allocations: 3.473 MB / 0.5131 GB, free: 376 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002284/0.4824, allocations: 53.64 kB / 0.5132 GB, free: 316 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00194/0.4844, allocations: 2.728 MB / 0.5158 GB, free: 13.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008483/0.4852, allocations: 0.6441 MB / 0.5165 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001714/0.4869, allocations: 1.111 MB / 0.5175 GB, free: 11.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.4871, allocations: 305.1 kB / 0.5178 GB, free: 11.47 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002972/0.49, allocations: 1.959 MB / 0.5197 GB, free: 9.504 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004926/0.495, allocations: 5.381 MB / 0.525 GB, free: 2.406 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1735/0.6685, allocations: 7.935 MB / 0.5327 GB, free: 137.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001326/0.6687, allocations: 35.34 kB / 0.5328 GB, free: 137.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01596/0.6847, allocations: 8.173 MB / 0.5408 GB, free: 134.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001546/0.6849, allocations: 57.94 kB / 0.5408 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002454/0.6851, allocations: 120.1 kB / 0.5409 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00437/0.6895, allocations: 1.298 MB / 0.5422 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004058/0.6936, allocations: 1.261 MB / 0.5434 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008023/0.7016, allocations: 6.101 MB / 0.5494 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003563/0.7052, allocations: 303.1 kB / 0.5497 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006572/0.7059, allocations: 341 kB / 0.55 GB, free: 131.3 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.002362/0.7083, allocations: 1.809 MB / 0.5518 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005089/0.7088, allocations: 304.4 kB / 0.5521 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006167/0.7149, allocations: 3.39 MB / 0.5554 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.715, allocations: 19.28 kB / 0.5554 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.715, allocations: 7.938 kB / 0.5554 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.715, allocations: 9.078 kB / 0.5554 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.7263, allocations: 7.63 MB / 0.5629 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.7263, allocations: 3.938 kB / 0.5629 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.7273, allocations: 250.7 kB / 0.5631 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003279/0.7306, allocations: 1.121 MB / 0.5642 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.7307, allocations: 24 kB / 0.5642 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006288/0.737, allocations: 5.726 MB / 0.5698 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.737, allocations: 3.938 kB / 0.5698 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007704/0.7448, allocations: 5.747 MB / 0.5754 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005611/0.7453, allocations: 353 kB / 0.5758 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005644/0.7459, allocations: 31.94 kB / 0.5758 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/0.7472, allocations: 91.88 kB / 0.5759 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.7474, allocations: 88.88 kB / 0.576 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.7476, allocations: 43.98 kB / 0.576 GB, free: 112.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002283/0.7499, allocations: 2.15 MB / 0.5781 GB, free: 110.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7499, allocations: 0 / 0.5781 GB, free: 110.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003575/0.7534, allocations: 0.89 MB / 0.579 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.008151/0.7616, allocations: 6.383 MB / 0.5852 GB, free: 103.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006631/0.7683, allocations: 4.803 MB / 0.5899 GB, free: 98.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.7683, allocations: 0 / 0.5899 GB, free: 98.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001983/0.7703, allocations: 1.539 MB / 0.5914 GB, free: 97.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/0.7725, allocations: 347.2 kB / 0.5917 GB, free: 96.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05657/0.829, allocations: 46.98 MB / 0.6376 GB, free: 43.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002642/0.8317, allocations: 2.854 MB / 0.6404 GB, free: 40.14 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003513/0.8352, allocations: 1.715 MB / 0.6421 GB, free: 38.42 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001513/0.8368, allocations: 1.577 MB / 0.6436 GB, free: 36.84 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/0.8368, allocations: 4 kB / 0.6436 GB, free: 36.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2371/1.074, allocations: 61.99 MB / 0.7042 GB, free: 152.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/1.074, allocations: 250.9 kB / 0.7044 GB, free: 151.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.241/4.315, allocations: 0 / 0.7044 GB, free: 151.9 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