Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.0007879/0.0007879, allocations: 88.53 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.000814/0.0008141, 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.438/1.438, allocations: 223.2 MB / 241.2 MB, free: 5.293 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003407/0.0003408, allocations: 7.219 kB / 300.9 MB, free: 5.629 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.122, allocations: 50.42 MB / 351.3 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01537/0.1374, allocations: 16.11 MB / 367.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.1488, allocations: 4.681 MB / 372.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002965/0.1518, allocations: 67.81 kB / 372.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002372/0.1542, allocations: 0.7815 MB / 373 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008067/0.1623, allocations: 2.662 MB / 375.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.1636, allocations: 379.3 kB / 376 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004175/0.1678, allocations: 2.854 MB / 378.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003347/0.1712, allocations: 1.862 MB / 380.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001687/0.1729, allocations: 0.7355 MB / 381.5 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002139/0.175, allocations: 1.207 MB / 382.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000429/0.1755, allocations: 88 kB / 382.8 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001799/0.1773, allocations: 0.8658 MB / 383.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009928/0.1783, allocations: 1.017 MB / 384.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005782/0.1789, allocations: 0.5118 MB / 385.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003047/0.1819, allocations: 3.277 MB / 388.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.188e-05/0.182, allocations: 11.98 kB / 388.4 MB, free: 6.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.182, allocations: 0 / 388.4 MB, free: 6.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.662e-05/0.182, allocations: 0 / 388.4 MB, free: 6.129 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.004242/0.1863, allocations: 2.571 MB / 391 MB, free: 3.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.1863, allocations: 12.03 kB / 391 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005008/0.1868, allocations: 470.7 kB / 391.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005808/0.1926, allocations: 1.786 MB / 393.3 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002776/0.1954, allocations: 1.667 MB / 394.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.1955, allocations: 135.3 kB / 395.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005749/0.1961, allocations: 259.6 kB / 395.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01108/0.2072, allocations: 6.664 MB / 402 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.456e-05/0.2073, allocations: 27.72 kB / 402 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000247/0.2076, allocations: 83.89 kB / 402.1 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002011/0.2096, allocations: 1.367 MB / 403.5 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01067/0.2203, allocations: 6.017 MB / 409.5 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.284/0.5044, allocations: 25.57 MB / 435 MB, free: 47.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006955/0.5114, allocations: 2.659 MB / 437.7 MB, free: 46.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.513, allocations: 1.031 MB / 438.7 MB, free: 46.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006663/0.5196, allocations: 3.862 MB / 442.6 MB, free: 44.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/0.5198, allocations: 46.84 kB / 442.6 MB, free: 44.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 7.985e-06/0.5198, allocations: 3.094 kB / 442.7 MB, free: 44.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02758/0.5474, allocations: 10.3 MB / 453 MB, free: 42.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001506/0.5489, allocations: 1.583 MB / 454.5 MB, free: 40.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004762/0.5537, allocations: 2.724 MB / 457.3 MB, free: 39.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004442/0.5542, allocations: 42.47 kB / 457.3 MB, free: 39.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/0.5559, allocations: 2.085 MB / 459.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009417/0.5568, allocations: 0.5076 MB / 459.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002411/0.5571, allocations: 86.23 kB / 460 MB, free: 36.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002798/0.5574, allocations: 0.4947 MB / 460.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002654/0.56, allocations: 1.607 MB / 462.1 MB, free: 35.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004165/0.5642, allocations: 4.408 MB / 466.5 MB, free: 30.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003949/0.5682, allocations: 2.616 MB / 469.1 MB, free: 27.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.434e-05/0.5684, allocations: 30.34 kB / 469.1 MB, free: 27.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01558/0.584, allocations: 7.005 MB / 476.1 MB, free: 20.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.084e-05/0.5841, allocations: 48 kB / 476.2 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005313/0.5894, allocations: 2.536 MB / 478.7 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004581/0.5941, allocations: 1.503 MB / 480.2 MB, free: 16.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/0.5971, allocations: 1.01 MB / 481.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007988/0.6052, allocations: 7.188 MB / 488.4 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004181/0.6094, allocations: 316.3 kB / 488.7 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009018/0.6103, allocations: 281.6 kB / 489 MB, free: 7.605 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002533/0.6129, allocations: 1.428 MB / 490.4 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004826/0.6134, allocations: 233 kB / 490.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005476/0.6188, allocations: 2.838 MB / 493.5 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004604/0.6235, allocations: 2.506 MB / 496 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.617e-05/0.6235, allocations: 11.81 kB / 496 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.6235, allocations: 7.969 kB / 496 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01341/0.6369, allocations: 6.868 MB / 0.4911 GB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/0.637, allocations: 8.094 kB / 0.4911 GB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008243/0.6378, allocations: 179.7 kB / 0.4913 GB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00435/0.6422, allocations: 1.429 MB / 0.4927 GB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.6424, allocations: 33.47 kB / 0.4927 GB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009923/0.6523, allocations: 7.32 MB / 0.4999 GB, free: 380 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001145/0.6535, allocations: 1.454 MB / 0.5013 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009083/0.6626, allocations: 4.846 MB / 0.506 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009698/0.6636, allocations: 302.5 kB / 0.5063 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000643/0.6643, allocations: 30.61 kB / 0.5063 GB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.6657, allocations: 111.8 kB / 0.5064 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002965/0.6661, allocations: 80.38 kB / 0.5065 GB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.6662, allocations: 39.98 kB / 0.5066 GB, free: 9.328 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003509/0.6697, allocations: 1.682 MB / 0.5082 GB, free: 7.633 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6697, allocations: 480 / 0.5082 GB, free: 7.633 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004927/0.6747, allocations: 0.7662 MB / 0.5089 GB, free: 6.871 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009757/0.6844, allocations: 5.491 MB / 0.5143 GB, free: 1.332 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008368/0.6928, allocations: 4.312 MB / 0.5185 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/0.6929, allocations: 4 kB / 0.5185 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003251/0.6962, allocations: 1.707 MB / 0.5202 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002635/0.6988, allocations: 266.4 kB / 0.5204 GB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04751/0.7464, allocations: 23.68 MB / 0.5436 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003144/0.7495, allocations: 2.297 MB / 0.5458 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003592/0.7532, allocations: 1.411 MB / 0.5472 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001751/0.7549, allocations: 1.116 MB / 0.5483 GB, free: 11.87 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7549, allocations: 0 / 0.5483 GB, free: 11.87 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3131/1.068, allocations: 54.43 MB / 0.6014 GB, free: 155.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/1.068, allocations: 239.2 kB / 0.6017 GB, free: 155.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.208/4.276, allocations: 3.25 kB / 0.6017 GB, free: 155.2 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat