Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 106.1 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2474, allocations: 49.45 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01023/0.2577, allocations: 10.27 MB / 410.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006921/0.2646, allocations: 3.874 MB / 414.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.2658, allocations: 59.81 kB / 414.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003419/0.2693, allocations: 2.067 MB / 416.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003695/0.273, allocations: 1.645 MB / 418.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001737/0.2747, allocations: 0.6979 MB / 418.9 MB, free: 6.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00419/0.2789, allocations: 3.357 MB / 422.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002893/0.2819, allocations: 2.683 MB / 424.9 MB, free: 28 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001664/0.2835, allocations: 1.258 MB / 426.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002137/0.2857, allocations: 1.76 MB / 427.9 MB, free: 13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006113/0.2863, allocations: 264 kB / 428.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001882/0.2882, allocations: 1.123 MB / 429.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00142/0.2896, allocations: 1.582 MB / 430.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002018/0.2917, allocations: 1.86 MB / 432.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005279/0.297, allocations: 5.952 MB / 438.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.297, allocations: 0 / 438.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.297, allocations: 0 / 438.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001384/0.2971, allocations: 0 / 438.7 MB, free: 2.188 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.007487/0.3046, allocations: 4.145 MB / 442.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3047, allocations: 12.03 kB / 442.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009224/0.3056, allocations: 0.6412 MB / 443.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006508/0.3121, allocations: 1.868 MB / 445.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00447/0.3166, allocations: 2.205 MB / 447.6 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.3168, allocations: 205.2 kB / 447.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000636/0.3174, allocations: 279.8 kB / 448 MB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01633/0.3337, allocations: 9.977 MB / 458 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.3339, allocations: 43.58 kB / 458.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004725/0.3344, allocations: 135.9 kB / 458.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002897/0.3373, allocations: 1.856 MB / 460 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01662/0.3539, allocations: 8.528 MB / 468.6 MB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03947/0.3934, allocations: 36.7 MB / 0.4934 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009257/0.4027, allocations: 3.882 MB / 0.4972 GB, free: 9.656 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002291/0.405, allocations: 1.814 MB / 0.499 GB, free: 7.832 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01018/0.4152, allocations: 7.52 MB / 0.5063 GB, free: 32 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.432e-05/0.4153, allocations: 55.55 kB / 0.5064 GB, free: 15.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.248e-06/0.4153, allocations: 0 / 0.5064 GB, free: 15.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05122/0.4665, allocations: 17.42 MB / 0.5234 GB, free: 14.42 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.973e-05/0.4666, allocations: 145.8 kB / 0.5235 GB, free: 14.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004543/0.4712, allocations: 3.481 MB / 0.5269 GB, free: 10.77 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002174/0.4714, allocations: 53.7 kB / 0.527 GB, free: 10.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00163/0.4731, allocations: 2.732 MB / 0.5297 GB, free: 7.938 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006654/0.4738, allocations: 0.6441 MB / 0.5303 GB, free: 7.285 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00156/0.4753, allocations: 1.111 MB / 0.5314 GB, free: 6.164 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.889e-05/0.4754, allocations: 313 kB / 0.5317 GB, free: 5.855 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/0.4783, allocations: 1.943 MB / 0.5336 GB, free: 3.906 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1743/0.6526, allocations: 5.362 MB / 0.5388 GB, free: 127.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007539/0.6601, allocations: 7.914 MB / 0.5465 GB, free: 121 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/0.6603, allocations: 38.19 kB / 0.5466 GB, free: 121 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01319/0.6735, allocations: 8.148 MB / 0.5545 GB, free: 118.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.6737, allocations: 62.34 kB / 0.5546 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/0.6739, allocations: 119.5 kB / 0.5547 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003708/0.6776, allocations: 1.298 MB / 0.556 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003485/0.6811, allocations: 1.256 MB / 0.5572 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007148/0.6882, allocations: 6.543 MB / 0.5636 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003537/0.6918, allocations: 298 kB / 0.5639 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005712/0.6924, allocations: 340 kB / 0.5642 GB, free: 111.7 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.002187/0.6946, allocations: 1.807 MB / 0.566 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004483/0.695, allocations: 311.5 kB / 0.5663 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006001/0.701, allocations: 3.355 MB / 0.5695 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.539e-05/0.7011, allocations: 23.94 kB / 0.5696 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.7011, allocations: 4 kB / 0.5696 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.7011, allocations: 11.97 kB / 0.5696 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/0.7133, allocations: 7.577 MB / 0.577 GB, free: 98.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.7134, allocations: 0 / 0.577 GB, free: 98.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.7144, allocations: 239.7 kB / 0.5772 GB, free: 98.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003391/0.7178, allocations: 1.119 MB / 0.5783 GB, free: 97.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/0.718, allocations: 31.98 kB / 0.5783 GB, free: 97.37 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006692/0.7247, allocations: 6.167 MB / 0.5843 GB, free: 91.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.7247, allocations: 6.891 kB / 0.5844 GB, free: 91.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00776/0.7325, allocations: 5.722 MB / 0.5899 GB, free: 85.46 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006146/0.7331, allocations: 345.1 kB / 0.5903 GB, free: 85.11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003473/0.7335, allocations: 35.98 kB / 0.5903 GB, free: 85.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.7347, allocations: 87.88 kB / 0.5904 GB, free: 84.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/0.7349, allocations: 92.81 kB / 0.5905 GB, free: 84.89 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.735, allocations: 40 kB / 0.5905 GB, free: 84.86 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002235/0.7373, allocations: 2.154 MB / 0.5926 GB, free: 82.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7373, allocations: 0 / 0.5926 GB, free: 82.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003614/0.7409, allocations: 0.9076 MB / 0.5935 GB, free: 81.81 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.007849/0.7488, allocations: 6.357 MB / 0.5997 GB, free: 75.43 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005744/0.7545, allocations: 4.778 MB / 0.6044 GB, free: 70.67 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.7546, allocations: 4 kB / 0.6044 GB, free: 70.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/0.7563, allocations: 1.53 MB / 0.6059 GB, free: 69.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001793/0.7582, allocations: 366.7 kB / 0.6062 GB, free: 68.77 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04328/0.8014, allocations: 41.08 MB / 0.6463 GB, free: 22.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00206/0.8035, allocations: 2.855 MB / 0.6491 GB, free: 19.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002943/0.8065, allocations: 1.699 MB / 0.6508 GB, free: 17.83 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/0.808, allocations: 1.585 MB / 0.6523 GB, free: 16.25 MB / 462.1 MB Notification: Performance of SimCode: time 1.713e-06/0.808, allocations: 0 / 0.6523 GB, free: 16.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.554/3.362, allocations: 61.24 MB / 0.7121 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.61/21.97, allocations: 19.86 kB / 0.7122 GB, free: 3.434 MB / 0.4981 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches