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.0008924/0.0008925, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.0009116/0.0009118, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.341/1.341, allocations: 223.2 MB / 241.1 MB, free: 5.387 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002793, allocations: 7.188 kB / 300.8 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1036, allocations: 50.42 MB / 351.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01548/0.1191, allocations: 15.27 MB / 366.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.1294, allocations: 4.796 MB / 371.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002819/0.1323, allocations: 67.81 kB / 371.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002312/0.1346, allocations: 0.7116 MB / 372.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008762/0.1434, allocations: 2.416 MB / 374.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.1449, allocations: 367.3 kB / 374.9 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003208/0.1481, allocations: 1.496 MB / 376.4 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002815/0.151, allocations: 1.85 MB / 378.2 MB, free: 496 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009699/0.1519, allocations: 0.6229 MB / 378.8 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/0.153, allocations: 0.8761 MB / 379.7 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002406/0.1533, allocations: 88 kB / 379.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001481/0.1547, allocations: 0.8503 MB / 380.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008504/0.1556, allocations: 0.9429 MB / 381.6 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004694/0.1561, allocations: 0.504 MB / 382.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003429/0.1595, allocations: 3.285 MB / 385.4 MB, free: 9.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1596, allocations: 0 / 385.4 MB, free: 9.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1596, allocations: 3.938 kB / 385.4 MB, free: 9.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.001e-05/0.1597, allocations: 0 / 385.4 MB, free: 9.289 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.00546/0.1651, allocations: 2.591 MB / 388 MB, free: 6.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1652, allocations: 8.031 kB / 388 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008334/0.166, allocations: 474.7 kB / 388.4 MB, free: 6.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007621/0.1737, allocations: 2.079 MB / 390.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003557/0.1773, allocations: 1.46 MB / 392 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.1774, allocations: 135.3 kB / 392.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007874/0.1782, allocations: 263.6 kB / 392.4 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01208/0.1903, allocations: 6.688 MB / 399 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.653e-05/0.1904, allocations: 27.8 kB / 399.1 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000393/0.1908, allocations: 87.89 kB / 399.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00222/0.193, allocations: 1.363 MB / 400.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01259/0.2056, allocations: 6.076 MB / 406.6 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2515/0.4572, allocations: 25.66 MB / 432.3 MB, free: 46.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006876/0.4641, allocations: 2.666 MB / 434.9 MB, free: 46.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007473/0.4716, allocations: 3.909 MB / 438.8 MB, free: 44.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.319e-05/0.4717, allocations: 52.66 kB / 438.9 MB, free: 44.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 4.088e-06/0.4717, allocations: 0.9688 kB / 438.9 MB, free: 44.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02559/0.4973, allocations: 10.57 MB / 449.5 MB, free: 41.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009611/0.4983, allocations: 1.599 MB / 451.1 MB, free: 40.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003339/0.5017, allocations: 2.833 MB / 453.9 MB, free: 39.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002424/0.5019, allocations: 41.33 kB / 453.9 MB, free: 39.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000953/0.5029, allocations: 2.086 MB / 456 MB, free: 38.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004411/0.5033, allocations: 0.5043 MB / 456.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.5035, allocations: 89.44 kB / 456.6 MB, free: 37.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.5037, allocations: 0.4928 MB / 457.1 MB, free: 37.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001959/0.5057, allocations: 1.652 MB / 458.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002792/0.5085, allocations: 4.439 MB / 463.2 MB, free: 31.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002875/0.5114, allocations: 2.646 MB / 465.8 MB, free: 29.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.929e-05/0.5114, allocations: 32 kB / 465.9 MB, free: 29.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01722/0.5286, allocations: 7.991 MB / 473.9 MB, free: 21.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.738e-05/0.5287, allocations: 48 kB / 473.9 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01036/0.5391, allocations: 3.505 MB / 477.4 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01162/0.5508, allocations: 2.597 MB / 480 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00326/0.5541, allocations: 1.002 MB / 481 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/0.566, allocations: 9.319 MB / 490.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003831/0.5698, allocations: 328.5 kB / 490.7 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005737/0.5704, allocations: 288.8 kB / 490.9 MB, free: 4.172 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.002086/0.5725, allocations: 1.421 MB / 492.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004319/0.5729, allocations: 229 kB / 492.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00607/0.579, allocations: 2.849 MB / 495.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006068/0.5851, allocations: 2.505 MB / 497.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.487e-05/0.5852, allocations: 4 kB / 497.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.528e-05/0.5852, allocations: 7.984 kB / 497.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/0.5996, allocations: 6.879 MB / 0.493 GB, free: 6.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-05/0.5997, allocations: 5 kB / 0.493 GB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008654/0.6005, allocations: 175.7 kB / 0.4932 GB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004758/0.6053, allocations: 1.437 MB / 0.4946 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001738/0.6055, allocations: 33.14 kB / 0.4946 GB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009828/0.6153, allocations: 7.529 MB / 0.5019 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009999/0.6164, allocations: 1.464 MB / 0.5034 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008636/0.625, allocations: 4.965 MB / 0.5082 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008784/0.626, allocations: 313.8 kB / 0.5085 GB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002661/0.6262, allocations: 32.44 kB / 0.5086 GB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.6274, allocations: 107.8 kB / 0.5087 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002427/0.6276, allocations: 85.3 kB / 0.5087 GB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.345e-05/0.6277, allocations: 31.98 kB / 0.5088 GB, free: 5.512 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002441/0.6302, allocations: 1.775 MB / 0.5105 GB, free: 3.727 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6302, allocations: 0 / 0.5105 GB, free: 3.727 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003581/0.6338, allocations: 0.8036 MB / 0.5113 GB, free: 2.93 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.009619/0.6434, allocations: 5.994 MB / 0.5171 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00791/0.6513, allocations: 4.379 MB / 0.5214 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.6514, allocations: 0 / 0.5214 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003169/0.6545, allocations: 1.724 MB / 0.5231 GB, free: 6.695 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.6561, allocations: 251.3 kB / 0.5233 GB, free: 6.453 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3063/0.9624, allocations: 92.96 MB / 0.6141 GB, free: 147.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002262/0.9648, allocations: 2.357 MB / 0.6164 GB, free: 147 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003278/0.9681, allocations: 1.407 MB / 0.6178 GB, free: 147 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/0.9694, allocations: 1.119 MB / 0.6189 GB, free: 146.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.9694, allocations: 0 / 0.6189 GB, free: 146.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09067/1.06, allocations: 57.61 MB / 0.6752 GB, free: 93.97 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/1.06, allocations: 238.7 kB / 0.6754 GB, free: 93.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.272/4.333, allocations: 0 / 0.6754 GB, free: 93.72 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