Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 226.5 MB / 244.7 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007346/0.0007346, allocations: 83.61 kB / 296.8 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002143/0.0002143, allocations: 8 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2084, allocations: 51.29 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02/0.2285, allocations: 31.45 MB / 439.5 MB, free: 12.14 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01489/0.2434, allocations: 7.462 MB / 447 MB, free: 4.668 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004723/0.2481, allocations: 147.6 kB / 447.1 MB, free: 4.523 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004306/0.2525, allocations: 1.586 MB / 448.7 MB, free: 2.93 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.2639, allocations: 4.849 MB / 453.5 MB, free: 14.06 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00257/0.2664, allocations: 0.6279 MB / 454.2 MB, free: 13.43 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004977/0.2714, allocations: 3.889 MB / 458.1 MB, free: 9.535 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00468/0.2761, allocations: 3.595 MB / 461.6 MB, free: 5.863 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.2777, allocations: 1.031 MB / 462.7 MB, free: 4.828 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001982/0.2797, allocations: 1.655 MB / 464.3 MB, free: 3.168 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003881/0.2801, allocations: 124 kB / 464.5 MB, free: 3.047 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001805/0.2819, allocations: 1.026 MB / 465.5 MB, free: 2.02 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001355/0.2833, allocations: 1.41 MB / 466.9 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001616/0.2849, allocations: 1.602 MB / 468.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004594/0.2895, allocations: 4.49 MB / 473 MB, free: 10.49 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2895, allocations: 0 / 473 MB, free: 10.49 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2896, allocations: 0 / 473 MB, free: 10.49 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.451e-05/0.2896, allocations: 0 / 473 MB, free: 10.49 MB / 346.7 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.005767/0.2954, allocations: 3.385 MB / 476.4 MB, free: 7.039 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.2955, allocations: 12.03 kB / 476.4 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006365/0.3018, allocations: 1.903 MB / 478.3 MB, free: 5.117 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003432/0.3053, allocations: 1.851 MB / 480.1 MB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.3055, allocations: 205.2 kB / 480.3 MB, free: 3.016 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005326/0.306, allocations: 275.8 kB / 480.6 MB, free: 2.746 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01707/0.3231, allocations: 9.962 MB / 490.6 MB, free: 8.105 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.629e-05/0.3232, allocations: 43.59 kB / 490.6 MB, free: 8.062 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003465/0.3236, allocations: 139.9 kB / 490.7 MB, free: 7.926 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002775/0.3263, allocations: 1.852 MB / 492.6 MB, free: 6.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01611/0.3425, allocations: 8.517 MB / 0.4894 GB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.213/0.5555, allocations: 36.84 MB / 0.5253 GB, free: 68.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008088/0.5636, allocations: 3.878 MB / 0.5291 GB, free: 66.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001946/0.5656, allocations: 1.802 MB / 0.5309 GB, free: 66.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008185/0.5738, allocations: 7.526 MB / 0.5382 GB, free: 60.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.5739, allocations: 46.72 kB / 0.5383 GB, free: 60.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=150): time 3.747e-06/0.5739, allocations: 3.906 kB / 0.5383 GB, free: 60.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=166): time 0.04334/0.6173, allocations: 17.37 MB / 0.5552 GB, free: 43.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.6173, allocations: 145.5 kB / 0.5554 GB, free: 43.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003339/0.6207, allocations: 3.453 MB / 0.5588 GB, free: 40.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001608/0.6209, allocations: 51.11 kB / 0.5588 GB, free: 40.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.6219, allocations: 2.736 MB / 0.5615 GB, free: 37.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004413/0.6223, allocations: 0.6405 MB / 0.5621 GB, free: 36.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.6225, allocations: 108 kB / 0.5622 GB, free: 36.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.6227, allocations: 0.5415 MB / 0.5627 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002302/0.625, allocations: 1.928 MB / 0.5646 GB, free: 34.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003302/0.6284, allocations: 5.354 MB / 0.5698 GB, free: 27.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006051/0.6344, allocations: 7.907 MB / 0.5776 GB, free: 17.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.204e-05/0.6345, allocations: 36 kB / 0.5776 GB, free: 17.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01157/0.6461, allocations: 8.128 MB / 0.5855 GB, free: 9.328 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.482e-05/0.6461, allocations: 58.69 kB / 0.5856 GB, free: 9.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.623e-05/0.6462, allocations: 120 kB / 0.5857 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003501/0.6497, allocations: 1.302 MB / 0.587 GB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003302/0.653, allocations: 1.263 MB / 0.5882 GB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007014/0.6601, allocations: 6.091 MB / 0.5942 GB, free: 372 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003535/0.6636, allocations: 300.2 kB / 0.5945 GB, free: 72 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005819/0.6642, allocations: 352.8 kB / 0.5948 GB, free: 15.73 MB / 394.7 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.002714/0.6669, allocations: 1.8 MB / 0.5965 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004726/0.6674, allocations: 304.1 kB / 0.5968 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007128/0.6746, allocations: 3.373 MB / 0.6001 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-05/0.6746, allocations: 20 kB / 0.6001 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.6746, allocations: 4 kB / 0.6002 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.6747, allocations: 11.97 kB / 0.6002 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/0.6883, allocations: 7.589 MB / 0.6076 GB, free: 2.551 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/0.6884, allocations: 2.438 kB / 0.6076 GB, free: 2.551 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.6895, allocations: 239.7 kB / 0.6078 GB, free: 2.316 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003723/0.6933, allocations: 1.12 MB / 0.6089 GB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001639/0.6935, allocations: 28.7 kB / 0.6089 GB, free: 1.164 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007886/0.7013, allocations: 5.711 MB / 0.6145 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.7014, allocations: 4.031 kB / 0.6145 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009636/0.711, allocations: 5.701 MB / 0.6201 GB, free: 5.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007924/0.7119, allocations: 361 kB / 0.6204 GB, free: 5.215 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002987/0.7122, allocations: 28.88 kB / 0.6204 GB, free: 5.188 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.7134, allocations: 91.88 kB / 0.6205 GB, free: 5.098 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002501/0.7137, allocations: 92.81 kB / 0.6206 GB, free: 5.008 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001189/0.7138, allocations: 49.31 kB / 0.6207 GB, free: 4.961 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002982/0.7168, allocations: 2.126 MB / 0.6227 GB, free: 2.844 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7168, allocations: 0 / 0.6227 GB, free: 2.844 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003812/0.7206, allocations: 0.9167 MB / 0.6236 GB, free: 1.934 MB / 410.7 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.0003864/0.721, allocations: 170.9 kB / 0.6238 GB, free: 1.766 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006956/0.728, allocations: 4.756 MB / 0.6285 GB, free: 13.03 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.728, allocations: 0 / 0.6285 GB, free: 13.03 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002201/0.7302, allocations: 1.535 MB / 0.63 GB, free: 11.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/0.7324, allocations: 337.8 kB / 0.6303 GB, free: 11.15 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01338/0.7458, allocations: 9.896 MB / 0.6399 GB, free: 1.203 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00266/0.7485, allocations: 2.859 MB / 0.6427 GB, free: 14.31 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008612/0.7493, allocations: 255.4 kB / 0.643 GB, free: 14.07 MB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/0.7494, allocations: 4 kB / 0.643 GB, free: 14.06 MB / 442.7 MB Notification: Performance of Templates: time 0.243/0.9924, allocations: 65.11 MB / 0.7066 GB, free: 130.9 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches