Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008561/0.0008561, allocations: 174.7 kB / 16.72 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.155/1.155, allocations: 205.4 MB / 222.9 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006825/0.0006824, allocations: 78.42 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002982/0.0002982, allocations: 12 kB / 327.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1897, allocations: 47.57 MB / 375.2 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.02026/0.21, allocations: 31.39 MB / 406.6 MB, free: 17.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01251/0.2225, allocations: 7.444 MB / 414 MB, free: 9.758 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004208/0.2268, allocations: 147.6 kB / 414.2 MB, free: 9.613 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003085/0.2299, allocations: 1.575 MB / 415.7 MB, free: 8.031 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009947/0.2398, allocations: 4.868 MB / 420.6 MB, free: 3.145 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00199/0.2418, allocations: 0.5576 MB / 421.2 MB, free: 2.586 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003961/0.2458, allocations: 3.808 MB / 425 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003762/0.2496, allocations: 3.191 MB / 428.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001397/0.251, allocations: 1.043 MB / 429.2 MB, free: 10.47 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001701/0.2527, allocations: 1.596 MB / 430.8 MB, free: 8.867 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000277/0.253, allocations: 116 kB / 430.9 MB, free: 8.754 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00152/0.2545, allocations: 0.9399 MB / 431.9 MB, free: 7.812 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001153/0.2557, allocations: 1.395 MB / 433.3 MB, free: 6.414 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001285/0.257, allocations: 1.586 MB / 434.8 MB, free: 4.812 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003846/0.2608, allocations: 4.454 MB / 439.3 MB, free: 356 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2609, allocations: 0 / 439.3 MB, free: 356 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2609, allocations: 0 / 439.3 MB, free: 356 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001073/0.261, allocations: 0 / 439.3 MB, free: 356 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.005175/0.2662, allocations: 3.317 MB / 442.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.2662, allocations: 12.03 kB / 442.6 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006233/0.2669, allocations: 0.6043 MB / 443.2 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005601/0.2725, allocations: 1.833 MB / 445.1 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003504/0.276, allocations: 2.396 MB / 447.5 MB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.2761, allocations: 188.8 kB / 447.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004089/0.2765, allocations: 251.8 kB / 447.9 MB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01106/0.2876, allocations: 8.415 MB / 456.3 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.889e-05/0.2877, allocations: 43.59 kB / 456.3 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002869/0.288, allocations: 123.9 kB / 456.5 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002472/0.2905, allocations: 1.699 MB / 458.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01142/0.3019, allocations: 7.063 MB / 465.2 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03322/0.3352, allocations: 34.19 MB / 499.4 MB, free: 2.406 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1405/0.4757, allocations: 3.27 MB / 0.4909 GB, free: 109.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/0.4774, allocations: 1.459 MB / 0.4923 GB, free: 109.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00506/0.4824, allocations: 4.369 MB / 0.4966 GB, free: 106.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.4825, allocations: 48.66 kB / 0.4966 GB, free: 106.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 2.785e-06/0.4825, allocations: 0 / 0.4966 GB, free: 106.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.02325/0.5057, allocations: 11.54 MB / 0.5079 GB, free: 101.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.5058, allocations: 139.8 kB / 0.508 GB, free: 101.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003411/0.5092, allocations: 3.72 MB / 0.5117 GB, free: 99.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.629e-05/0.5093, allocations: 42.41 kB / 0.5117 GB, free: 99.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00103/0.5104, allocations: 2.748 MB / 0.5144 GB, free: 96.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003025/0.5107, allocations: 0.5287 MB / 0.5149 GB, free: 95.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.5108, allocations: 107.4 kB / 0.515 GB, free: 95.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.511, allocations: 0.5253 MB / 0.5155 GB, free: 95.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/0.5128, allocations: 1.677 MB / 0.5172 GB, free: 93.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002583/0.5154, allocations: 5.094 MB / 0.5221 GB, free: 86.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005033/0.5204, allocations: 7.373 MB / 0.5293 GB, free: 77.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.745e-05/0.5205, allocations: 40 kB / 0.5294 GB, free: 77.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.007758/0.5283, allocations: 6.669 MB / 0.5359 GB, free: 71.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.61e-05/0.5283, allocations: 56 kB / 0.5359 GB, free: 71.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.409e-05/0.5284, allocations: 120 kB / 0.5361 GB, free: 70.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004889/0.5289, allocations: 321.4 kB / 0.5364 GB, free: 70.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002891/0.5318, allocations: 1.236 MB / 0.5376 GB, free: 69.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.5336, allocations: 2.289 MB / 0.5398 GB, free: 67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002787/0.5364, allocations: 288.8 kB / 0.5401 GB, free: 66.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000338/0.5367, allocations: 332.1 kB / 0.5404 GB, free: 66.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (664): * Single equations (assignments): 660 * 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 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002041/0.5388, allocations: 1.787 MB / 0.5421 GB, free: 64.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000363/0.5391, allocations: 308 kB / 0.5424 GB, free: 64.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003702/0.5428, allocations: 2.371 MB / 0.5448 GB, free: 61.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/0.5429, allocations: 16 kB / 0.5448 GB, free: 61.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.5429, allocations: 4 kB / 0.5448 GB, free: 61.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.5429, allocations: 7.984 kB / 0.5448 GB, free: 61.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008218/0.5511, allocations: 5.929 MB / 0.5506 GB, free: 55.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.5511, allocations: 64 / 0.5506 GB, free: 55.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006708/0.5518, allocations: 175.8 kB / 0.5507 GB, free: 55.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001791/0.5536, allocations: 0.7124 MB / 0.5514 GB, free: 55.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.867e-05/0.5537, allocations: 25.33 kB / 0.5515 GB, free: 55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004139/0.5578, allocations: 4.457 MB / 0.5558 GB, free: 50.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5579, allocations: 11.94 kB / 0.5558 GB, free: 50.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004964/0.5628, allocations: 4.319 MB / 0.56 GB, free: 46.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007917/0.5636, allocations: 0.532 MB / 0.5606 GB, free: 45.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002451/0.5639, allocations: 16 kB / 0.5606 GB, free: 45.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009108/0.5648, allocations: 67.91 kB / 0.5606 GB, free: 45.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.565, allocations: 72.44 kB / 0.5607 GB, free: 45.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.565e-05/0.5651, allocations: 36 kB / 0.5607 GB, free: 45.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00236/0.5675, allocations: 2.319 MB / 0.563 GB, free: 43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5675, allocations: 0 / 0.563 GB, free: 43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002999/0.5705, allocations: 0.8129 MB / 0.5638 GB, free: 42.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * 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 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005211/0.5757, allocations: 4.949 MB / 0.5686 GB, free: 37.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004368/0.5801, allocations: 3.993 MB / 0.5725 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5801, allocations: 0 / 0.5725 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.5812, allocations: 1.103 MB / 0.5736 GB, free: 32.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002187/0.5834, allocations: 374.9 kB / 0.574 GB, free: 31.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03242/0.6158, allocations: 28.51 MB / 0.6018 GB, free: 12 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002511/0.6184, allocations: 2.789 MB / 0.6045 GB, free: 13.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001839/0.6202, allocations: 1.565 MB / 0.6061 GB, free: 11.64 MB / 394.7 MB Notification: Performance of SimCode: time 6.52e-07/0.6202, allocations: 0 / 0.6061 GB, free: 11.64 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.266/6.886, allocations: 77.05 MB / 0.6813 GB, free: 121.5 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches