Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001248/0.001248, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.2 MB / 241.2 MB, free: 5.172 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.0002701, allocations: 7.094 kB / 300.9 MB, free: 5.504 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.11, allocations: 50.42 MB / 351.3 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.03013/0.1402, allocations: 31.38 MB / 382.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01778/0.158, allocations: 7.431 MB / 390.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006454/0.1645, allocations: 147.6 kB / 390.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005213/0.1698, allocations: 1.571 MB / 391.9 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01325/0.1831, allocations: 4.848 MB / 396.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002545/0.1856, allocations: 0.5109 MB / 397.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005359/0.191, allocations: 3.777 MB / 401 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005052/0.1961, allocations: 2.947 MB / 404 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002228/0.1983, allocations: 1.047 MB / 405 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002762/0.2011, allocations: 1.585 MB / 406.6 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007425/0.2018, allocations: 116 kB / 406.7 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002215/0.2041, allocations: 0.8074 MB / 407.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001939/0.206, allocations: 1.387 MB / 408.9 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001404/0.2074, allocations: 0.7065 MB / 409.6 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005016/0.2125, allocations: 4.435 MB / 414 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2125, allocations: 0 / 414 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2125, allocations: 0 / 414 MB, free: 12.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002315/0.2127, allocations: 0 / 414 MB, free: 12.27 MB / 350.1 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.007044/0.2198, allocations: 3.359 MB / 417.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.2198, allocations: 8.031 kB / 417.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00153/0.2214, allocations: 0.608 MB / 418 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006211/0.2276, allocations: 1.832 MB / 419.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004553/0.2322, allocations: 2.181 MB / 422 MB, free: 4.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.2323, allocations: 192.8 kB / 422.2 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004083/0.2327, allocations: 259.7 kB / 422.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2266/0.4594, allocations: 8.412 MB / 430.9 MB, free: 62.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001165/0.4595, allocations: 42.8 kB / 430.9 MB, free: 62.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003932/0.4599, allocations: 127.1 kB / 431 MB, free: 62.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003224/0.4632, allocations: 1.692 MB / 432.7 MB, free: 62.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0149/0.4781, allocations: 7.07 MB / 439.8 MB, free: 62.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03204/0.5102, allocations: 34.13 MB / 473.9 MB, free: 31.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006088/0.5163, allocations: 3.281 MB / 477.2 MB, free: 27.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001545/0.5178, allocations: 1.455 MB / 478.7 MB, free: 26.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005256/0.5231, allocations: 4.363 MB / 483 MB, free: 21.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.5232, allocations: 51.11 kB / 483.1 MB, free: 21.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=121): time 3.687e-06/0.5232, allocations: 3.938 kB / 483.1 MB, free: 21.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=129): time 0.02458/0.5478, allocations: 11.47 MB / 494.6 MB, free: 10 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.5479, allocations: 145.1 kB / 494.7 MB, free: 9.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00418/0.552, allocations: 3.706 MB / 498.4 MB, free: 6.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002099/0.5523, allocations: 41.7 kB / 498.4 MB, free: 6.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001487/0.5538, allocations: 2.755 MB / 0.4895 GB, free: 3.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004842/0.5543, allocations: 0.5175 MB / 0.49 GB, free: 2.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.5545, allocations: 108 kB / 0.4901 GB, free: 2.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000237/0.5547, allocations: 0.5292 MB / 0.4906 GB, free: 2.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002055/0.5568, allocations: 1.67 MB / 0.4922 GB, free: 0.5078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005289/0.5621, allocations: 5.094 MB / 0.4972 GB, free: 9.688 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005151/0.5673, allocations: 2.878 MB / 0.5 GB, free: 6.809 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000127/0.5674, allocations: 36 kB / 0.5 GB, free: 6.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.0142/0.5816, allocations: 6.65 MB / 0.5065 GB, free: 120 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.636e-05/0.5818, allocations: 56 kB / 0.5066 GB, free: 64 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/0.5819, allocations: 128.2 kB / 0.5067 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006158/0.5825, allocations: 340.6 kB / 0.507 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004024/0.5866, allocations: 1.24 MB / 0.5082 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002597/0.5892, allocations: 2.294 MB / 0.5105 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004068/0.5933, allocations: 279.6 kB / 0.5107 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009651/0.5943, allocations: 332 kB / 0.5111 GB, free: 11.33 MB / 382.1 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.004766/0.5991, allocations: 1.787 MB / 0.5128 GB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009033/0.6, allocations: 316 kB / 0.5131 GB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005102/0.6051, allocations: 2.355 MB / 0.5154 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.311e-05/0.6052, allocations: 12 kB / 0.5154 GB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/0.6052, allocations: 4 kB / 0.5154 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.105e-05/0.6052, allocations: 15.97 kB / 0.5154 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.6178, allocations: 5.927 MB / 0.5212 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/0.6178, allocations: 0 / 0.5212 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008145/0.6187, allocations: 175.8 kB / 0.5214 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001943/0.6206, allocations: 0.7108 MB / 0.5221 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.6207, allocations: 24.06 kB / 0.5221 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005666/0.6264, allocations: 4.46 MB / 0.5265 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.6264, allocations: 0 / 0.5265 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007385/0.6338, allocations: 4.32 MB / 0.5307 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.6351, allocations: 372.9 kB / 0.531 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000775/0.6359, allocations: 16.47 kB / 0.5311 GB, free: 6.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/0.6374, allocations: 67.91 kB / 0.5311 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.6376, allocations: 68.52 kB / 0.5312 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.6377, allocations: 32 kB / 0.5312 GB, free: 6.426 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00438/0.6421, allocations: 2.307 MB / 0.5335 GB, free: 4.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6421, allocations: 3.938 kB / 0.5335 GB, free: 4.129 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006062/0.6482, allocations: 0.8255 MB / 0.5343 GB, free: 3.309 MB / 398.1 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.009458/0.6577, allocations: 4.943 MB / 0.5391 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00779/0.6656, allocations: 3.99 MB / 0.543 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.6656, allocations: 4.75 kB / 0.543 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001733/0.6673, allocations: 1.107 MB / 0.5441 GB, free: 9.234 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002561/0.6699, allocations: 377.7 kB / 0.5444 GB, free: 8.867 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05652/0.7265, allocations: 28.01 MB / 0.5718 GB, free: 9.645 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00356/0.7301, allocations: 2.781 MB / 0.5745 GB, free: 6.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005112/0.7352, allocations: 1.66 MB / 0.5761 GB, free: 5.176 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003249/0.7385, allocations: 1.522 MB / 0.5776 GB, free: 3.652 MB / 446.1 MB Notification: Performance of SimCode: time 2.184e-06/0.7385, allocations: 0 / 0.5776 GB, free: 3.652 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3469/1.085, allocations: 64.81 MB / 0.6409 GB, free: 100.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/1.086, allocations: 230.6 kB / 0.6411 GB, free: 100.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.852/4.938, allocations: 0 / 0.6411 GB, free: 100.4 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat does not exist to compare? outputFormat=mat