Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009483/0.0009483, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.185/1.185, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007486/0.0007485, allocations: 95.92 kB / 296.7 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000237/0.0002371, allocations: 8 kB / 356.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.1795, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01957/0.1991, allocations: 31.39 MB / 439.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0127/0.2118, allocations: 7.456 MB / 447 MB, free: 4.734 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003819/0.2157, allocations: 147.6 kB / 447.1 MB, free: 4.59 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002916/0.2186, allocations: 1.579 MB / 448.7 MB, free: 3.004 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009364/0.228, allocations: 4.856 MB / 453.6 MB, free: 14.13 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001618/0.2296, allocations: 0.5499 MB / 454.1 MB, free: 13.58 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003922/0.2336, allocations: 3.872 MB / 458 MB, free: 9.695 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003479/0.2371, allocations: 3.174 MB / 461.2 MB, free: 6.449 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001187/0.2383, allocations: 1.043 MB / 462.2 MB, free: 5.402 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.2398, allocations: 1.589 MB / 463.8 MB, free: 3.809 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002498/0.2401, allocations: 116 kB / 463.9 MB, free: 3.695 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001443/0.2415, allocations: 0.9282 MB / 464.8 MB, free: 2.766 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001/0.2425, allocations: 1.391 MB / 466.2 MB, free: 1.371 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001204/0.2437, allocations: 1.586 MB / 467.8 MB, free: 15.77 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003488/0.2472, allocations: 4.432 MB / 472.2 MB, free: 11.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2473, allocations: 0 / 472.2 MB, free: 11.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2473, allocations: 0 / 472.2 MB, free: 11.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.547e-05/0.2474, allocations: 0 / 472.2 MB, free: 11.33 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.004919/0.2523, allocations: 3.32 MB / 475.6 MB, free: 7.941 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2523, allocations: 12.03 kB / 475.6 MB, free: 7.93 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006311/0.253, allocations: 0.6121 MB / 476.2 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005726/0.2587, allocations: 1.833 MB / 478 MB, free: 5.469 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003576/0.2623, allocations: 2.115 MB / 480.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.2624, allocations: 192.8 kB / 480.3 MB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004061/0.2629, allocations: 255.8 kB / 480.6 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/0.2742, allocations: 8.419 MB / 489 MB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.063e-05/0.2743, allocations: 39.59 kB / 489 MB, free: 9.727 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002885/0.2746, allocations: 123.9 kB / 489.1 MB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002469/0.2771, allocations: 1.703 MB / 490.8 MB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01142/0.2885, allocations: 7.071 MB / 497.9 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1878/0.4763, allocations: 34.15 MB / 0.5196 GB, free: 69.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006116/0.4825, allocations: 3.256 MB / 0.5228 GB, free: 68.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.4838, allocations: 1.462 MB / 0.5242 GB, free: 68.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004189/0.488, allocations: 4.355 MB / 0.5285 GB, free: 65.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.4881, allocations: 50.06 kB / 0.5285 GB, free: 65.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 2.725e-06/0.4881, allocations: 0 / 0.5285 GB, free: 65.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.02249/0.5106, allocations: 11.48 MB / 0.5397 GB, free: 57.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.5106, allocations: 148.6 kB / 0.5399 GB, free: 56.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003297/0.5139, allocations: 3.708 MB / 0.5435 GB, free: 53.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.624e-05/0.514, allocations: 41.7 kB / 0.5435 GB, free: 53.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009785/0.515, allocations: 2.753 MB / 0.5462 GB, free: 50.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/0.5153, allocations: 0.5149 MB / 0.5467 GB, free: 49.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/0.5155, allocations: 106.6 kB / 0.5468 GB, free: 49.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.5157, allocations: 0.5214 MB / 0.5473 GB, free: 49.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00178/0.5175, allocations: 1.677 MB / 0.549 GB, free: 47.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002651/0.5201, allocations: 5.098 MB / 0.5539 GB, free: 40.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004973/0.5251, allocations: 7.379 MB / 0.5611 GB, free: 31.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.951e-05/0.5251, allocations: 40 kB / 0.5612 GB, free: 31.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.007366/0.5325, allocations: 6.653 MB / 0.5677 GB, free: 25.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.397e-05/0.5326, allocations: 64.25 kB / 0.5677 GB, free: 24.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.652e-05/0.5327, allocations: 120 kB / 0.5679 GB, free: 24.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004801/0.5332, allocations: 324.6 kB / 0.5682 GB, free: 24.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002791/0.536, allocations: 1.237 MB / 0.5694 GB, free: 23.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/0.5377, allocations: 2.291 MB / 0.5716 GB, free: 20.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002642/0.5403, allocations: 288.1 kB / 0.5719 GB, free: 20.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003131/0.5407, allocations: 336.6 kB / 0.5722 GB, free: 20.28 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.001828/0.5425, allocations: 1.78 MB / 0.5739 GB, free: 18.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003341/0.5428, allocations: 315.9 kB / 0.5742 GB, free: 18.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003727/0.5466, allocations: 2.363 MB / 0.5765 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/0.5466, allocations: 16.62 kB / 0.5766 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.5466, allocations: 4 kB / 0.5766 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.5466, allocations: 7.734 kB / 0.5766 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008182/0.5548, allocations: 5.926 MB / 0.5824 GB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.5549, allocations: 4.062 kB / 0.5824 GB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006765/0.5555, allocations: 171.8 kB / 0.5825 GB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001861/0.5574, allocations: 0.7146 MB / 0.5832 GB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.498e-05/0.5575, allocations: 23.98 kB / 0.5833 GB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004226/0.5617, allocations: 4.459 MB / 0.5876 GB, free: 4.309 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5617, allocations: 8.156 kB / 0.5876 GB, free: 4.301 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005131/0.5669, allocations: 4.318 MB / 0.5918 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006481/0.5675, allocations: 372.9 kB / 0.5922 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002603/0.5678, allocations: 20.69 kB / 0.5922 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009686/0.5688, allocations: 68.69 kB / 0.5923 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002252/0.569, allocations: 68.5 kB / 0.5923 GB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.759e-05/0.5691, allocations: 44.98 kB / 0.5924 GB, free: 15.37 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002921/0.572, allocations: 2.303 MB / 0.5946 GB, free: 13.08 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5721, allocations: 0 / 0.5946 GB, free: 13.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003397/0.5755, allocations: 0.8158 MB / 0.5954 GB, free: 12.27 MB / 394.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.006294/0.5818, allocations: 4.945 MB / 0.6003 GB, free: 7.285 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005306/0.5871, allocations: 3.987 MB / 0.6041 GB, free: 3.312 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5871, allocations: 0 / 0.6041 GB, free: 3.312 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.5884, allocations: 1.108 MB / 0.6052 GB, free: 2.195 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.5908, allocations: 368.6 kB / 0.6056 GB, free: 1.836 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0396/0.6305, allocations: 28.42 MB / 0.6333 GB, free: 2.199 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002464/0.6329, allocations: 2.786 MB / 0.6361 GB, free: 15.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001905/0.6349, allocations: 1.565 MB / 0.6376 GB, free: 13.82 MB / 442.7 MB Notification: Performance of SimCode: time 6.21e-07/0.6349, allocations: 0 / 0.6376 GB, free: 13.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.197/6.831, allocations: 76.92 MB / 0.7127 GB, free: 120.4 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches