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.001509/0.00151, allocations: 111.1 kB / 17.06 MB, free: 5.992 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.001581/0.001581, allocations: 200 kB / 18.01 MB, free: 5.066 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.407/1.407, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 51.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2522, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01174/0.264, allocations: 10.28 MB / 410.5 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007735/0.2718, allocations: 3.87 MB / 414.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.2732, allocations: 51.88 kB / 414.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00389/0.2771, allocations: 2.083 MB / 416.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004076/0.2812, allocations: 1.634 MB / 418.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.2829, allocations: 0.694 MB / 418.9 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00453/0.2874, allocations: 3.367 MB / 422.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002986/0.2904, allocations: 2.684 MB / 424.9 MB, free: 0 / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001677/0.2921, allocations: 1.254 MB / 426.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002295/0.2944, allocations: 1.768 MB / 427.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005502/0.295, allocations: 264 kB / 428.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002082/0.2971, allocations: 1.123 MB / 429.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001558/0.2987, allocations: 1.57 MB / 430.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002002/0.3007, allocations: 1.864 MB / 432.7 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00717/0.3078, allocations: 5.968 MB / 438.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3079, allocations: 0 / 438.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3079, allocations: 0 / 438.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.322e-05/0.308, allocations: 4 kB / 438.7 MB, free: 2.141 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.007416/0.3154, allocations: 4.247 MB / 443 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.3155, allocations: 16.02 kB / 443 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007369/0.3162, allocations: 0.6413 MB / 443.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006564/0.3228, allocations: 1.886 MB / 445.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003888/0.3267, allocations: 2.218 MB / 447.7 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.3269, allocations: 213.2 kB / 447.9 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005266/0.3274, allocations: 271.8 kB / 448.2 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01817/0.3456, allocations: 9.977 MB / 458.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001036/0.3457, allocations: 39.64 kB / 458.2 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003674/0.3461, allocations: 127.9 kB / 458.3 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003223/0.3493, allocations: 1.864 MB / 460.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01792/0.3673, allocations: 8.536 MB / 468.7 MB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04393/0.4112, allocations: 36.76 MB / 0.4937 GB, free: 13.49 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009835/0.4211, allocations: 3.89 MB / 0.4975 GB, free: 9.402 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002492/0.4237, allocations: 1.806 MB / 0.4992 GB, free: 7.586 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01097/0.4346, allocations: 7.533 MB / 0.5066 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.4347, allocations: 43.56 kB / 0.5066 GB, free: 15.72 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 3.787e-06/0.4347, allocations: 0 / 0.5066 GB, free: 15.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05198/0.4867, allocations: 17.63 MB / 0.5238 GB, free: 13.99 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.4869, allocations: 149.6 kB / 0.524 GB, free: 13.82 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005035/0.4919, allocations: 3.49 MB / 0.5274 GB, free: 10.32 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003039/0.4922, allocations: 53.69 kB / 0.5274 GB, free: 10.27 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002189/0.4944, allocations: 2.846 MB / 0.5302 GB, free: 7.395 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007686/0.4952, allocations: 0.6746 MB / 0.5309 GB, free: 6.715 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001468/0.4967, allocations: 1.12 MB / 0.532 GB, free: 5.586 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.4968, allocations: 305.1 kB / 0.5323 GB, free: 5.285 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002918/0.4997, allocations: 1.939 MB / 0.5341 GB, free: 3.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1989/0.6987, allocations: 5.363 MB / 0.5394 GB, free: 127 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008027/0.7068, allocations: 7.93 MB / 0.5471 GB, free: 120.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001051/0.7069, allocations: 34.34 kB / 0.5472 GB, free: 120.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01224/0.7192, allocations: 8.16 MB / 0.5551 GB, free: 118.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.527e-05/0.7193, allocations: 58.44 kB / 0.5552 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.7194, allocations: 125.5 kB / 0.5553 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003602/0.723, allocations: 1.294 MB / 0.5566 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003467/0.7265, allocations: 1.258 MB / 0.5578 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007339/0.7338, allocations: 6.547 MB / 0.5642 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003811/0.7377, allocations: 301.1 kB / 0.5645 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006226/0.7383, allocations: 340.7 kB / 0.5648 GB, free: 111.5 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.002343/0.7407, allocations: 1.799 MB / 0.5666 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004879/0.7412, allocations: 325.1 kB / 0.5669 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006046/0.7472, allocations: 3.367 MB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.947e-05/0.7473, allocations: 17.02 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.7473, allocations: 8.703 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/0.7473, allocations: 7.969 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/0.7587, allocations: 7.587 MB / 0.5776 GB, free: 98.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.7587, allocations: 4 kB / 0.5776 GB, free: 98.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.7597, allocations: 239.7 kB / 0.5778 GB, free: 98.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003367/0.7631, allocations: 1.116 MB / 0.5789 GB, free: 97.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001733/0.7633, allocations: 34.92 kB / 0.579 GB, free: 97.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006694/0.77, allocations: 6.155 MB / 0.585 GB, free: 90.97 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.77, allocations: 1.75 kB / 0.585 GB, free: 90.97 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007857/0.7779, allocations: 5.735 MB / 0.5906 GB, free: 85.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006765/0.7786, allocations: 367.8 kB / 0.5909 GB, free: 84.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003173/0.7789, allocations: 31.81 kB / 0.5909 GB, free: 84.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.7801, allocations: 87.88 kB / 0.591 GB, free: 84.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000277/0.7804, allocations: 92.77 kB / 0.5911 GB, free: 84.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.7805, allocations: 47.98 kB / 0.5912 GB, free: 84.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002681/0.7832, allocations: 2.154 MB / 0.5933 GB, free: 82.54 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7832, allocations: 0 / 0.5933 GB, free: 82.54 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00391/0.7871, allocations: 0.9133 MB / 0.5942 GB, free: 81.63 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.008273/0.7954, allocations: 6.368 MB / 0.6004 GB, free: 75.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006322/0.8018, allocations: 4.786 MB / 0.6051 GB, free: 70.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.8018, allocations: 0 / 0.6051 GB, free: 70.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001801/0.8036, allocations: 1.533 MB / 0.6066 GB, free: 68.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001997/0.8056, allocations: 355.9 kB / 0.6069 GB, free: 68.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04671/0.8523, allocations: 41.24 MB / 0.6472 GB, free: 22.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002253/0.8546, allocations: 2.847 MB / 0.6499 GB, free: 19.21 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002941/0.8576, allocations: 1.711 MB / 0.6516 GB, free: 17.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001433/0.859, allocations: 1.585 MB / 0.6532 GB, free: 15.91 MB / 462.1 MB Notification: Performance of SimCode: time 1.793e-06/0.8591, allocations: 0 / 0.6532 GB, free: 15.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1077/0.9668, allocations: 60.23 MB / 0.712 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.86/19.83, allocations: 11.78 kB / 0.712 GB, free: 4.125 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