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.001746/0.001746, allocations: 111.9 kB / 18.4 MB, free: 4.566 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.002082/0.002082, allocations: 190.3 kB / 19.33 MB, free: 3.648 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.55/1.55, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001486/0.001486, allocations: 55.92 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/0.09212, allocations: 46.61 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2228/0.315, allocations: 10.32 MB / 386.1 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008219/0.3232, allocations: 3.868 MB / 390 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.3258, allocations: 53.47 kB / 390.1 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00495/0.3308, allocations: 2.083 MB / 392.1 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006808/0.3376, allocations: 1.638 MB / 393.8 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002375/0.34, allocations: 0.6841 MB / 394.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006881/0.3469, allocations: 3.389 MB / 397.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00421/0.3512, allocations: 2.708 MB / 400.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003016/0.3542, allocations: 1.263 MB / 401.8 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003923/0.3582, allocations: 1.766 MB / 403.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001253/0.3594, allocations: 262.5 kB / 403.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003444/0.3629, allocations: 1.11 MB / 405 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0027/0.3656, allocations: 1.584 MB / 406.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004509/0.3702, allocations: 1.867 MB / 408.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01077/0.381, allocations: 5.945 MB / 414.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.381, allocations: 0 / 414.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.381, allocations: 0 / 414.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002812/0.3813, allocations: 0 / 414.4 MB, free: 8.637 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.01166/0.393, allocations: 4.133 MB / 418.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.3931, allocations: 8.031 kB / 418.5 MB, free: 4.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007236/0.4003, allocations: 1.856 MB / 420.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004797/0.4051, allocations: 1.968 MB / 422.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/0.4054, allocations: 201.2 kB / 422.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/0.4064, allocations: 271.8 kB / 422.8 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02193/0.4283, allocations: 9.977 MB / 432.8 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001613/0.4286, allocations: 43.59 kB / 432.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008454/0.4294, allocations: 135.9 kB / 432.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003535/0.433, allocations: 1.852 MB / 434.8 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01876/0.4518, allocations: 8.536 MB / 443.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04542/0.4972, allocations: 36.71 MB / 480 MB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009723/0.507, allocations: 3.877 MB / 483.9 MB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002522/0.5096, allocations: 1.806 MB / 485.7 MB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01072/0.5203, allocations: 7.528 MB / 493.2 MB, free: 7.707 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/0.5204, allocations: 43.56 kB / 493.3 MB, free: 7.656 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.88e-06/0.5204, allocations: 4 kB / 493.3 MB, free: 7.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05537/0.5758, allocations: 17.47 MB / 0.4988 GB, free: 6.059 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.805e-05/0.5759, allocations: 141.5 kB / 0.4989 GB, free: 5.887 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006749/0.5827, allocations: 3.481 MB / 0.5023 GB, free: 2.402 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004126/0.5832, allocations: 53.7 kB / 0.5024 GB, free: 2.344 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002265/0.5854, allocations: 2.74 MB / 0.505 GB, free: 15.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009656/0.5864, allocations: 0.6364 MB / 0.5057 GB, free: 14.92 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003025/0.5895, allocations: 1.123 MB / 0.5068 GB, free: 13.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.5896, allocations: 301.1 kB / 0.5071 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003541/0.5931, allocations: 1.951 MB / 0.509 GB, free: 11.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005879/0.599, allocations: 5.37 MB / 0.5142 GB, free: 4.449 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009884/0.6089, allocations: 7.939 MB / 0.522 GB, free: 10.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001688/0.6092, allocations: 36 kB / 0.522 GB, free: 10.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01897/0.6281, allocations: 8.178 MB / 0.53 GB, free: 2.578 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001603/0.6283, allocations: 56 kB / 0.53 GB, free: 2.523 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002263/0.6286, allocations: 120 kB / 0.5301 GB, free: 2.406 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0044/0.633, allocations: 1.3 MB / 0.5314 GB, free: 1.102 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004466/0.6375, allocations: 1.255 MB / 0.5326 GB, free: 15.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009559/0.6471, allocations: 6.542 MB / 0.539 GB, free: 9.164 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005169/0.6523, allocations: 303.5 kB / 0.5393 GB, free: 8.867 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001368/0.6537, allocations: 336 kB / 0.5396 GB, free: 8.539 MB / 478.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.004675/0.6584, allocations: 1.818 MB / 0.5414 GB, free: 6.707 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/0.6594, allocations: 304.1 kB / 0.5417 GB, free: 6.406 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00818/0.6676, allocations: 3.369 MB / 0.545 GB, free: 3.02 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.445e-05/0.6677, allocations: 19.98 kB / 0.545 GB, free: 3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.418e-05/0.6677, allocations: 4 kB / 0.545 GB, free: 2.996 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.235e-05/0.6678, allocations: 11.97 kB / 0.545 GB, free: 2.984 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2471/0.9149, allocations: 7.567 MB / 0.5524 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-05/0.915, allocations: 1.062 kB / 0.5524 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/0.9162, allocations: 242.6 kB / 0.5527 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004053/0.9203, allocations: 1.122 MB / 0.5537 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001962/0.9205, allocations: 26 kB / 0.5538 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008991/0.9295, allocations: 6.171 MB / 0.5598 GB, free: 145.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.9295, allocations: 1.5 kB / 0.5598 GB, free: 145.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/0.9399, allocations: 5.712 MB / 0.5654 GB, free: 143.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/0.9415, allocations: 0.5701 MB / 0.5659 GB, free: 143.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004184/0.942, allocations: 22.91 kB / 0.566 GB, free: 143.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.9432, allocations: 96.67 kB / 0.566 GB, free: 143.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002982/0.9435, allocations: 83.89 kB / 0.5661 GB, free: 143.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.9437, allocations: 47.72 kB / 0.5662 GB, free: 143.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003645/0.9473, allocations: 2.155 MB / 0.5683 GB, free: 142.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.9473, allocations: 3.375 kB / 0.5683 GB, free: 142.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00494/0.9523, allocations: 0.9185 MB / 0.5692 GB, free: 142.6 MB / 478.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.000462/0.9528, allocations: 158 kB / 0.5693 GB, free: 142.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006906/0.9597, allocations: 4.799 MB / 0.574 GB, free: 140.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.9597, allocations: 1.531 kB / 0.574 GB, free: 140.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002026/0.9618, allocations: 1.538 MB / 0.5755 GB, free: 140.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/0.9644, allocations: 367.7 kB / 0.5759 GB, free: 140.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01347/0.9779, allocations: 8.395 MB / 0.5841 GB, free: 136 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00251/0.9804, allocations: 2.855 MB / 0.5869 GB, free: 133.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009128/0.9814, allocations: 262.9 kB / 0.5871 GB, free: 133.5 MB / 478.1 MB Notification: Performance of SimCode: time 7.22e-07/0.9814, allocations: 0 / 0.5871 GB, free: 133.5 MB / 478.1 MB Notification: Performance of Templates: time 0.07974/1.061, allocations: 66.34 MB / 0.6519 GB, free: 67.25 MB / 478.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches