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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009324/0.0009324, allocations: 193 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.169/1.169, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007959/0.0007958, allocations: 103.9 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001996/0.0001998, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1861, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.0194/0.2055, allocations: 31.44 MB / 439.6 MB, free: 12.16 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01403/0.2196, allocations: 7.464 MB / 447 MB, free: 4.695 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00483/0.2244, allocations: 143.6 kB / 447.2 MB, free: 4.555 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003863/0.2283, allocations: 1.594 MB / 448.8 MB, free: 2.953 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01058/0.2389, allocations: 4.841 MB / 453.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002183/0.2411, allocations: 0.6317 MB / 454.2 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004511/0.2457, allocations: 3.889 MB / 458.1 MB, free: 9.562 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00448/0.2502, allocations: 3.591 MB / 461.7 MB, free: 5.895 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001347/0.2515, allocations: 1.043 MB / 462.8 MB, free: 4.848 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001718/0.2533, allocations: 1.651 MB / 464.4 MB, free: 3.191 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003125/0.2536, allocations: 124 kB / 464.5 MB, free: 3.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001661/0.2552, allocations: 1.026 MB / 465.6 MB, free: 2.043 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001112/0.2564, allocations: 1.402 MB / 467 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00132/0.2577, allocations: 1.617 MB / 468.6 MB, free: 15 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003796/0.2615, allocations: 4.479 MB / 473.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2615, allocations: 0 / 473.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.566e-06/0.2615, allocations: 7.984 kB / 473.1 MB, free: 10.51 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.966e-05/0.2616, allocations: 7.938 kB / 473.1 MB, free: 10.5 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.00669/0.2683, allocations: 3.385 MB / 476.5 MB, free: 7.051 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.2684, allocations: 12.03 kB / 476.5 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009143/0.2693, allocations: 0.6374 MB / 477.1 MB, free: 6.391 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006275/0.2756, allocations: 1.918 MB / 479 MB, free: 4.465 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003718/0.2793, allocations: 2.077 MB / 481.1 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.2795, allocations: 205.2 kB / 481.3 MB, free: 2.137 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005283/0.28, allocations: 271.8 kB / 481.6 MB, free: 1.871 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01663/0.2967, allocations: 9.97 MB / 491.5 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.399e-05/0.2968, allocations: 43.53 kB / 491.6 MB, free: 7.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00033/0.2971, allocations: 139.9 kB / 491.7 MB, free: 7.043 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002807/0.3, allocations: 1.848 MB / 493.6 MB, free: 5.191 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01602/0.316, allocations: 8.517 MB / 0.4903 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1759/0.4919, allocations: 36.84 MB / 0.5263 GB, free: 68.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007786/0.4997, allocations: 3.866 MB / 0.5301 GB, free: 66.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001726/0.5015, allocations: 1.801 MB / 0.5318 GB, free: 66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007493/0.509, allocations: 7.523 MB / 0.5392 GB, free: 60.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.509, allocations: 52.53 kB / 0.5392 GB, free: 60.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=150): time 3.557e-06/0.509, allocations: 0 / 0.5392 GB, free: 60.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=166): time 0.04293/0.552, allocations: 17.38 MB / 0.5562 GB, free: 43.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.552, allocations: 141.5 kB / 0.5563 GB, free: 43.49 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00357/0.5556, allocations: 3.458 MB / 0.5597 GB, free: 40.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001641/0.5558, allocations: 49.7 kB / 0.5598 GB, free: 39.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/0.5569, allocations: 2.735 MB / 0.5624 GB, free: 37.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004739/0.5574, allocations: 0.6391 MB / 0.5631 GB, free: 36.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002399/0.5576, allocations: 116 kB / 0.5632 GB, free: 36.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002354/0.5579, allocations: 0.5349 MB / 0.5637 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002373/0.5602, allocations: 1.924 MB / 0.5656 GB, free: 34.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003287/0.5635, allocations: 5.342 MB / 0.5708 GB, free: 26.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005781/0.5693, allocations: 7.891 MB / 0.5785 GB, free: 17.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.704e-05/0.5694, allocations: 32 kB / 0.5785 GB, free: 17.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01124/0.5806, allocations: 8.112 MB / 0.5865 GB, free: 9.223 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.99e-05/0.5807, allocations: 56.22 kB / 0.5865 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.569e-05/0.5808, allocations: 124 kB / 0.5866 GB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003557/0.5843, allocations: 1.294 MB / 0.5879 GB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00335/0.5877, allocations: 1.259 MB / 0.5891 GB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006777/0.5945, allocations: 6.105 MB / 0.5951 GB, free: 264 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003119/0.5976, allocations: 295.6 kB / 0.5954 GB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004864/0.5981, allocations: 340.5 kB / 0.5957 GB, free: 15.64 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 (681): * Single equations (assignments): 677 * 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.002347/0.6005, allocations: 1.807 MB / 0.5975 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004481/0.6009, allocations: 311.9 kB / 0.5977 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007033/0.608, allocations: 3.358 MB / 0.601 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.461e-05/0.608, allocations: 20 kB / 0.601 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.608, allocations: 7.938 kB / 0.6011 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.6081, allocations: 10.34 kB / 0.6011 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/0.6206, allocations: 7.598 MB / 0.6085 GB, free: 2.445 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.6206, allocations: 0 / 0.6085 GB, free: 2.445 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.6217, allocations: 239.7 kB / 0.6087 GB, free: 2.211 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003638/0.6253, allocations: 1.119 MB / 0.6098 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/0.6255, allocations: 29.23 kB / 0.6098 GB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0075/0.633, allocations: 5.722 MB / 0.6154 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.633, allocations: 4 kB / 0.6154 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008797/0.6418, allocations: 5.701 MB / 0.621 GB, free: 5.477 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000603/0.6424, allocations: 357 kB / 0.6213 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003746/0.6428, allocations: 28 kB / 0.6214 GB, free: 5.078 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/0.644, allocations: 87.88 kB / 0.6214 GB, free: 4.992 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003441/0.6444, allocations: 92.81 kB / 0.6215 GB, free: 4.902 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/0.6445, allocations: 49.86 kB / 0.6216 GB, free: 4.855 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002941/0.6475, allocations: 2.134 MB / 0.6237 GB, free: 2.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6475, allocations: 0 / 0.6237 GB, free: 2.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00352/0.651, allocations: 0.9114 MB / 0.6246 GB, free: 1.824 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.009251/0.6603, allocations: 6.349 MB / 0.6308 GB, free: 11.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006782/0.6671, allocations: 4.737 MB / 0.6354 GB, free: 6.727 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.6671, allocations: 4 kB / 0.6354 GB, free: 6.723 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002102/0.6692, allocations: 1.523 MB / 0.6369 GB, free: 5.184 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/0.6714, allocations: 348.3 kB / 0.6372 GB, free: 4.844 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04869/0.7201, allocations: 30.49 MB / 0.667 GB, free: 3.215 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003018/0.7232, allocations: 2.855 MB / 0.6698 GB, free: 332 kB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1423/0.8655, allocations: 1.62 MB / 0.6713 GB, free: 160.2 MB / 458.7 MB Notification: Performance of SimCode: time 7.32e-07/0.8655, allocations: 0 / 0.6713 GB, free: 160.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.271/7.136, allocations: 78.67 MB / 0.7482 GB, free: 94.49 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > 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/jenkins1/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