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.001203/0.001203, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001125/0.001126, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.208/1.208, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 47.42 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08666/0.08788, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01019/0.0981, allocations: 10.29 MB / 360.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006565/0.1047, allocations: 3.878 MB / 364.3 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001308/0.106, allocations: 55.88 kB / 364.4 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003598/0.1097, allocations: 2.071 MB / 366.5 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00319/0.1129, allocations: 1.643 MB / 368.1 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.1141, allocations: 0.694 MB / 368.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.151/0.2651, allocations: 3.353 MB / 372.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003716/0.2689, allocations: 2.686 MB / 374.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002123/0.271, allocations: 1.257 MB / 376.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002638/0.2737, allocations: 1.76 MB / 377.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006885/0.2744, allocations: 262.3 kB / 378.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002087/0.2765, allocations: 1.124 MB / 379.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001547/0.278, allocations: 1.567 MB / 380.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001627/0.2797, allocations: 1.868 MB / 382.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005761/0.2855, allocations: 5.734 MB / 388.4 MB, free: 6.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2855, allocations: 0 / 388.4 MB, free: 6.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2855, allocations: 3.984 kB / 388.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00016/0.2857, allocations: 1.062 kB / 388.4 MB, free: 6.055 MB / 302.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.007822/0.2935, allocations: 4.143 MB / 392.5 MB, free: 3.246 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.2935, allocations: 9.625 kB / 392.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007557/0.2943, allocations: 0.6394 MB / 393.2 MB, free: 2.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006008/0.3003, allocations: 1.868 MB / 395.1 MB, free: 1.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003164/0.3035, allocations: 2.171 MB / 397.2 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.3036, allocations: 208.2 kB / 397.4 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003968/0.304, allocations: 274.2 kB / 397.7 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01645/0.3205, allocations: 9.979 MB / 407.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.3206, allocations: 38.66 kB / 407.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006024/0.3212, allocations: 133.4 kB / 407.9 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003082/0.3243, allocations: 1.861 MB / 409.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01725/0.3416, allocations: 8.531 MB / 418.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04605/0.3877, allocations: 36.84 MB / 455.1 MB, free: 7.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00954/0.3973, allocations: 3.877 MB / 459 MB, free: 3.504 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00236/0.3997, allocations: 1.813 MB / 460.8 MB, free: 1.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01114/0.4108, allocations: 7.523 MB / 468.3 MB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.565e-05/0.4109, allocations: 54.11 kB / 468.4 MB, free: 9.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 6.953e-06/0.4109, allocations: 0 / 468.4 MB, free: 9.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04889/0.4598, allocations: 17.43 MB / 485.8 MB, free: 8.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.4599, allocations: 149.5 kB / 485.9 MB, free: 8.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004288/0.4642, allocations: 3.477 MB / 489.4 MB, free: 4.715 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.4643, allocations: 49.7 kB / 489.4 MB, free: 4.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.4658, allocations: 2.732 MB / 492.2 MB, free: 1.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005063/0.4663, allocations: 0.6417 MB / 492.8 MB, free: 1.297 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001255/0.4676, allocations: 1.113 MB / 493.9 MB, free: 180 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.238e-05/0.4677, allocations: 303.8 kB / 494.2 MB, free: 15.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002593/0.4703, allocations: 1.939 MB / 496.2 MB, free: 13.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004492/0.4748, allocations: 5.367 MB / 0.4898 GB, free: 6.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008225/0.4831, allocations: 7.914 MB / 0.4975 GB, free: 13.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.135e-05/0.4831, allocations: 39.94 kB / 0.4976 GB, free: 13.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01405/0.4972, allocations: 8.153 MB / 0.5055 GB, free: 5.156 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.321e-05/0.4973, allocations: 59.98 kB / 0.5056 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.781e-05/0.4974, allocations: 120 kB / 0.5057 GB, free: 4.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003826/0.5012, allocations: 1.3 MB / 0.507 GB, free: 3.676 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003316/0.5046, allocations: 1.255 MB / 0.5082 GB, free: 2.418 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008636/0.5132, allocations: 6.55 MB / 0.5146 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003827/0.517, allocations: 307.5 kB / 0.5149 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005373/0.5176, allocations: 336.5 kB / 0.5152 GB, free: 11.1 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.002777/0.5204, allocations: 1.813 MB / 0.517 GB, free: 9.277 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000475/0.5209, allocations: 308.1 kB / 0.5173 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006744/0.5276, allocations: 3.364 MB / 0.5205 GB, free: 5.598 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.581e-05/0.5277, allocations: 20 kB / 0.5206 GB, free: 5.578 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.5277, allocations: 7.984 kB / 0.5206 GB, free: 5.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.5277, allocations: 7.828 kB / 0.5206 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1733/0.701, allocations: 7.597 MB / 0.528 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.821e-05/0.7011, allocations: 4.719 kB / 0.528 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001231/0.7023, allocations: 236.9 kB / 0.5282 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003686/0.706, allocations: 1.131 MB / 0.5293 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/0.7062, allocations: 28.48 kB / 0.5294 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007978/0.7142, allocations: 6.168 MB / 0.5354 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.7142, allocations: 1.219 kB / 0.5354 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00904/0.7232, allocations: 5.699 MB / 0.5409 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007551/0.724, allocations: 354.4 kB / 0.5413 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003238/0.7243, allocations: 22.84 kB / 0.5413 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.7255, allocations: 92.55 kB / 0.5414 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002681/0.7258, allocations: 96.55 kB / 0.5415 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/0.7259, allocations: 45.86 kB / 0.5415 GB, free: 142.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002842/0.7288, allocations: 2.156 MB / 0.5436 GB, free: 142.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7288, allocations: 2.594 kB / 0.5436 GB, free: 142.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003582/0.7324, allocations: 0.9066 MB / 0.5445 GB, free: 142 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.007716/0.7401, allocations: 6.359 MB / 0.5507 GB, free: 139.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007104/0.7472, allocations: 5.532 MB / 0.5561 GB, free: 137.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.7472, allocations: 4 kB / 0.5561 GB, free: 137.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001817/0.7491, allocations: 1.539 MB / 0.5576 GB, free: 136.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002125/0.7512, allocations: 355.5 kB / 0.558 GB, free: 136 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0437/0.7949, allocations: 45.34 MB / 0.6023 GB, free: 85.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002088/0.797, allocations: 2.854 MB / 0.605 GB, free: 82.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003173/0.8002, allocations: 1.707 MB / 0.6067 GB, free: 80.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001437/0.8017, allocations: 1.582 MB / 0.6083 GB, free: 79.08 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.8017, allocations: 0 / 0.6083 GB, free: 79.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.447/2.248, allocations: 63.63 MB / 0.6704 GB, free: 15.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/15.47, allocations: 11.86 kB / 0.6704 GB, free: 15.81 MB / 446.1 MB (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