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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008254/0.0008252, allocations: 95.14 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009933/0.0009934, allocations: 200.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002382/0.0002385, allocations: 4 kB / 308.4 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0881/0.08836, allocations: 51.52 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2032/0.2917, allocations: 33.51 MB / 393.4 MB, free: 1.406 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01799/0.3097, allocations: 7.78 MB / 401.2 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006337/0.3161, allocations: 145.5 kB / 401.4 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001373/0.3175, allocations: 375.6 kB / 401.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004482/0.322, allocations: 1.514 MB / 403.2 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001618/0.3236, allocations: 0.6342 MB / 403.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006016/0.3296, allocations: 4.785 MB / 408.7 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005556/0.3352, allocations: 3.733 MB / 412.4 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001889/0.3371, allocations: 0.9452 MB / 413.3 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002456/0.3396, allocations: 1.67 MB / 415 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004942/0.3401, allocations: 128 kB / 415.1 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002111/0.3422, allocations: 1.033 MB / 416.2 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001302/0.3436, allocations: 1.422 MB / 417.6 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.3452, allocations: 1.698 MB / 419.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004503/0.3497, allocations: 4.444 MB / 423.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3497, allocations: 0 / 423.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3497, allocations: 0 / 423.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001332/0.3499, allocations: 4 kB / 423.7 MB, free: 11.02 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.00613/0.356, allocations: 3.355 MB / 427.1 MB, free: 7.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.3561, allocations: 12.03 kB / 427.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006837/0.3629, allocations: 1.903 MB / 429 MB, free: 5.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003242/0.3662, allocations: 1.843 MB / 430.8 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.3663, allocations: 217.1 kB / 431.1 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005384/0.3669, allocations: 271.8 kB / 431.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01769/0.3846, allocations: 10.04 MB / 441.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.813e-05/0.3847, allocations: 35.66 kB / 441.4 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003538/0.3851, allocations: 127.9 kB / 441.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003068/0.3881, allocations: 1.86 MB / 443.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01763/0.4058, allocations: 8.591 MB / 452 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04038/0.4462, allocations: 36.84 MB / 488.8 MB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009765/0.456, allocations: 3.916 MB / 492.7 MB, free: 3.969 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002441/0.4585, allocations: 1.804 MB / 494.5 MB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0104/0.4689, allocations: 7.626 MB / 0.4904 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.469, allocations: 47.5 kB / 0.4904 GB, free: 10.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.668e-06/0.469, allocations: 0 / 0.4904 GB, free: 10.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05207/0.5211, allocations: 17.55 MB / 0.5076 GB, free: 8.488 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.715e-05/0.5212, allocations: 149.5 kB / 0.5077 GB, free: 8.312 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004594/0.5258, allocations: 3.461 MB / 0.5111 GB, free: 4.848 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002569/0.5261, allocations: 45.7 kB / 0.5111 GB, free: 4.797 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00167/0.5277, allocations: 2.739 MB / 0.5138 GB, free: 2.023 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006313/0.5284, allocations: 0.6403 MB / 0.5144 GB, free: 1.375 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005482/0.5289, allocations: 482.3 kB / 0.5149 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.461e-05/0.529, allocations: 305.1 kB / 0.5152 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002943/0.532, allocations: 1.967 MB / 0.5171 GB, free: 14.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005063/0.5371, allocations: 5.393 MB / 0.5224 GB, free: 7.516 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1911/0.7282, allocations: 7.961 MB / 0.5301 GB, free: 139.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001052/0.7283, allocations: 42.67 kB / 0.5302 GB, free: 139.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01753/0.7459, allocations: 8.205 MB / 0.5382 GB, free: 137.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.776e-05/0.746, allocations: 57.47 kB / 0.5383 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001637/0.7462, allocations: 120.7 kB / 0.5384 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004395/0.7506, allocations: 1.3 MB / 0.5396 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004426/0.755, allocations: 1.274 MB / 0.5409 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008262/0.7633, allocations: 6.103 MB / 0.5468 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003852/0.7672, allocations: 308.4 kB / 0.5471 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006148/0.7678, allocations: 343.1 kB / 0.5475 GB, free: 134.6 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 (685): * Single equations (assignments): 681 * 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.003078/0.7709, allocations: 1.808 MB / 0.5492 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004705/0.7714, allocations: 302.4 kB / 0.5495 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006419/0.7778, allocations: 3.403 MB / 0.5528 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-05/0.7778, allocations: 19.47 kB / 0.5529 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.7778, allocations: 3.812 kB / 0.5529 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.7779, allocations: 7.312 kB / 0.5529 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/0.7896, allocations: 7.641 MB / 0.5603 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.7896, allocations: 0 / 0.5603 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.7907, allocations: 246.7 kB / 0.5606 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003374/0.7941, allocations: 1.118 MB / 0.5617 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/0.7942, allocations: 32.81 kB / 0.5617 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006741/0.8009, allocations: 5.725 MB / 0.5673 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.801, allocations: 4.062 kB / 0.5673 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008338/0.8093, allocations: 5.762 MB / 0.5729 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007826/0.8101, allocations: 357 kB / 0.5733 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002852/0.8104, allocations: 35.92 kB / 0.5733 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.8116, allocations: 98.45 kB / 0.5734 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002371/0.8119, allocations: 92.81 kB / 0.5735 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.812, allocations: 40 kB / 0.5735 GB, free: 117.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002523/0.8145, allocations: 2.146 MB / 0.5756 GB, free: 115 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8145, allocations: 3.094 kB / 0.5756 GB, free: 115 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003767/0.8183, allocations: 0.8944 MB / 0.5765 GB, free: 114.1 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.0003683/0.8187, allocations: 160.2 kB / 0.5766 GB, free: 113.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006509/0.8252, allocations: 4.824 MB / 0.5813 GB, free: 109.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.8252, allocations: 0 / 0.5813 GB, free: 109.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/0.8272, allocations: 1.548 MB / 0.5829 GB, free: 107.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002415/0.8296, allocations: 348.5 kB / 0.5832 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01367/0.8433, allocations: 10.3 MB / 0.5932 GB, free: 96.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002299/0.8456, allocations: 2.847 MB / 0.596 GB, free: 93.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008602/0.8465, allocations: 255.4 kB / 0.5963 GB, free: 93.74 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.8465, allocations: 0 / 0.5963 GB, free: 93.74 MB / 446.1 MB Notification: Performance of Templates: time 0.06985/0.9164, allocations: 64.77 MB / 0.6595 GB, free: 29.02 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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