Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: 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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009719/0.0009719, allocations: 99.52 kB / 16.96 MB, free: 6.109 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.001306/0.001306, allocations: 179 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006867/0.000687, allocations: 20 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.102, allocations: 47.58 MB / 328.4 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.0292/0.1312, allocations: 31.45 MB / 359.8 MB, free: 4.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.016/0.1472, allocations: 7.453 MB / 367.3 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006309/0.1536, allocations: 143.6 kB / 367.4 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005646/0.1593, allocations: 1.582 MB / 369 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01526/0.1746, allocations: 4.845 MB / 373.8 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003206/0.1778, allocations: 0.5694 MB / 374.4 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005782/0.1836, allocations: 3.818 MB / 378.2 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2089/0.3925, allocations: 3.366 MB / 381.6 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002661/0.3952, allocations: 1.046 MB / 382.6 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003222/0.3985, allocations: 1.658 MB / 384.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007052/0.3992, allocations: 124.6 kB / 384.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00223/0.4014, allocations: 0.8724 MB / 385.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001804/0.4033, allocations: 1.406 MB / 386.7 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009629/0.4042, allocations: 0.7056 MB / 387.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006023/0.4103, allocations: 4.487 MB / 391.9 MB, free: 10.83 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.4103, allocations: 0 / 391.9 MB, free: 10.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4103, allocations: 0 / 391.9 MB, free: 10.83 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001887/0.4105, allocations: 0 / 391.9 MB, free: 10.83 MB / 318.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.008543/0.419, allocations: 3.42 MB / 395.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.4191, allocations: 12.88 kB / 395.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00712/0.4262, allocations: 1.909 MB / 397.2 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004806/0.4311, allocations: 1.892 MB / 399.1 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001798/0.4313, allocations: 204.5 kB / 399.3 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008665/0.4322, allocations: 272.5 kB / 399.6 MB, free: 8.438 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01826/0.4504, allocations: 9.975 MB / 409.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/0.4506, allocations: 34.88 kB / 409.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004233/0.451, allocations: 132.5 kB / 409.7 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002654/0.4537, allocations: 1.86 MB / 411.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01798/0.4716, allocations: 8.518 MB / 420.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05057/0.5222, allocations: 36.83 MB / 456.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009789/0.5321, allocations: 3.869 MB / 460.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002702/0.5348, allocations: 1.798 MB / 462.6 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01195/0.5468, allocations: 7.536 MB / 470.1 MB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.5469, allocations: 50.94 kB / 470.2 MB, free: 1.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=150): time 3.737e-06/0.5469, allocations: 0 / 470.2 MB, free: 1.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=166): time 0.05423/0.6011, allocations: 17.38 MB / 487.6 MB, free: 384 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.354e-05/0.6012, allocations: 145.5 kB / 487.7 MB, free: 208 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005265/0.6065, allocations: 3.464 MB / 491.2 MB, free: 12.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003378/0.6069, allocations: 49.7 kB / 491.2 MB, free: 12.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001917/0.6088, allocations: 2.736 MB / 493.9 MB, free: 9.969 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008055/0.6096, allocations: 0.6431 MB / 494.6 MB, free: 9.332 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002498/0.6099, allocations: 114.2 kB / 494.7 MB, free: 9.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003259/0.6102, allocations: 0.5415 MB / 495.2 MB, free: 8.676 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003147/0.6134, allocations: 1.941 MB / 497.2 MB, free: 6.734 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005721/0.6191, allocations: 5.345 MB / 0.4908 GB, free: 15.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005186/0.6243, allocations: 3.128 MB / 0.4938 GB, free: 12.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.096e-05/0.6244, allocations: 36 kB / 0.4938 GB, free: 12.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.0174/0.6418, allocations: 8.117 MB / 0.5018 GB, free: 5.137 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/0.642, allocations: 56.97 kB / 0.5018 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001618/0.6421, allocations: 124 kB / 0.5019 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004006/0.6462, allocations: 1.312 MB / 0.5032 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004547/0.6507, allocations: 1.271 MB / 0.5045 GB, free: 2.371 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009567/0.6603, allocations: 6.093 MB / 0.5104 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00534/0.6657, allocations: 299 kB / 0.5107 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001404/0.6672, allocations: 344 kB / 0.511 GB, free: 11.52 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005172/0.6724, allocations: 1.81 MB / 0.5128 GB, free: 9.695 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008153/0.6732, allocations: 304.1 kB / 0.5131 GB, free: 9.395 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007375/0.6806, allocations: 3.368 MB / 0.5164 GB, free: 6.016 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.502e-05/0.6806, allocations: 16 kB / 0.5164 GB, free: 6 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.6807, allocations: 10.08 kB / 0.5164 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.747e-05/0.6807, allocations: 7.969 kB / 0.5164 GB, free: 5.984 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01583/0.6965, allocations: 7.601 MB / 0.5238 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.566e-05/0.6966, allocations: 0 / 0.5238 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001205/0.6978, allocations: 239.7 kB / 0.5241 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00357/0.7014, allocations: 1.115 MB / 0.5251 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002499/0.7017, allocations: 39.98 kB / 0.5252 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008352/0.71, allocations: 5.718 MB / 0.5308 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.71, allocations: 0 / 0.5308 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/0.7201, allocations: 5.692 MB / 0.5363 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001682/0.7218, allocations: 0.5867 MB / 0.5369 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004605/0.7223, allocations: 24 kB / 0.5369 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.7235, allocations: 93.62 kB / 0.537 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/0.7238, allocations: 84.88 kB / 0.5371 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.7239, allocations: 44 kB / 0.5371 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.196/0.9199, allocations: 2.138 MB / 0.5392 GB, free: 161.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.72e-07/0.92, allocations: 0 / 0.5392 GB, free: 161.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006653/0.9266, allocations: 0.9146 MB / 0.5401 GB, free: 161.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006117/0.9273, allocations: 165.5 kB / 0.5403 GB, free: 161.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008724/0.936, allocations: 4.766 MB / 0.5449 GB, free: 161.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.9361, allocations: 0 / 0.5449 GB, free: 161.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002457/0.9385, allocations: 1.521 MB / 0.5464 GB, free: 160.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/0.941, allocations: 356.4 kB / 0.5468 GB, free: 160.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01524/0.9563, allocations: 9.527 MB / 0.5561 GB, free: 155.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002677/0.959, allocations: 2.867 MB / 0.5589 GB, free: 154.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003979/0.963, allocations: 1.714 MB / 0.5605 GB, free: 154.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006275/0.9636, allocations: 219 kB / 0.5607 GB, free: 154.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.9637, allocations: 3.938 kB / 0.5607 GB, free: 154.6 MB / 446.1 MB Notification: Performance of Templates: time 0.05391/1.018, allocations: 31.59 MB / 0.5916 GB, free: 127.2 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches