Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",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.001598/0.001602, allocations: 182.2 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001113/0.001112, allocations: 94.84 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004049/0.0004052, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.344, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.04903/0.3931, allocations: 40.17 MB / 414.8 MB, free: 8.566 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02442/0.4176, allocations: 9.847 MB / 424.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008669/0.4263, allocations: 199.5 kB / 424.8 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009074/0.4355, allocations: 1.963 MB / 426.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02418/0.4597, allocations: 5.808 MB / 432.6 MB, free: 6.703 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004217/0.464, allocations: 0.6865 MB / 433.3 MB, free: 6.016 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007111/0.4711, allocations: 2.637 MB / 435.9 MB, free: 3.375 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00999/0.4812, allocations: 4.484 MB / 440.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00296/0.4842, allocations: 1.152 MB / 441.6 MB, free: 13.68 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003573/0.4878, allocations: 1.569 MB / 443.1 MB, free: 12.1 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001071/0.489, allocations: 164 kB / 443.3 MB, free: 11.94 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003367/0.4924, allocations: 0.9596 MB / 444.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0033/0.4957, allocations: 1.746 MB / 446 MB, free: 9.227 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002032/0.4978, allocations: 0.9011 MB / 446.9 MB, free: 8.316 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.5082, allocations: 5.726 MB / 452.6 MB, free: 2.578 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.5083, allocations: 0 / 452.6 MB, free: 2.578 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.5083, allocations: 0 / 452.6 MB, free: 2.578 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003057/0.5086, allocations: 0 / 452.6 MB, free: 2.578 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01463/0.5233, allocations: 4.431 MB / 457.1 MB, free: 14.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.5233, allocations: 8.031 kB / 457.1 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002684/0.526, allocations: 0.8019 MB / 457.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01728/0.5434, allocations: 2.525 MB / 460.4 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008995/0.5524, allocations: 2.908 MB / 463.3 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003946/0.5529, allocations: 278.9 kB / 463.6 MB, free: 7.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002331/0.5552, allocations: 435.6 kB / 464 MB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03929/0.5945, allocations: 12.34 MB / 476.3 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002163/0.5948, allocations: 47.53 kB / 476.4 MB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001146/0.596, allocations: 175.8 kB / 476.6 MB, free: 9.688 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006283/0.6023, allocations: 2.162 MB / 478.7 MB, free: 7.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03869/0.641, allocations: 10.34 MB / 489.1 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3564/0.9975, allocations: 44.91 MB / 0.5215 GB, free: 75.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03321/1.031, allocations: 7.177 MB / 0.5285 GB, free: 72.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02175/1.053, allocations: 9.316 MB / 0.5376 GB, free: 65.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.609e-05/1.053, allocations: 57.95 kB / 0.5376 GB, free: 65.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=183): time 6.452e-06/1.053, allocations: 3.438 kB / 0.5376 GB, free: 65.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=205): time 0.09849/1.151, allocations: 22.52 MB / 0.5596 GB, free: 44.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001289/1.153, allocations: 1.618 MB / 0.5612 GB, free: 42.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008093/1.161, allocations: 4.431 MB / 0.5655 GB, free: 37.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005206/1.161, allocations: 57.7 kB / 0.5656 GB, free: 37.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002393/1.164, allocations: 3.337 MB / 0.5688 GB, free: 34.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001163/1.165, allocations: 0.8008 MB / 0.5696 GB, free: 33.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007569/1.166, allocations: 132 kB / 0.5698 GB, free: 33.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00041/1.166, allocations: 0.5961 MB / 0.5703 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005835/1.172, allocations: 2.352 MB / 0.5726 GB, free: 30.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008355/1.18, allocations: 6.437 MB / 0.5789 GB, free: 22.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008493/1.189, allocations: 3.765 MB / 0.5826 GB, free: 18.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001472/1.189, allocations: 40 kB / 0.5826 GB, free: 18.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.0353/1.224, allocations: 10.1 MB / 0.5925 GB, free: 8.273 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.816e-05/1.225, allocations: 67.66 kB / 0.5926 GB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01984/1.244, allocations: 4.011 MB / 0.5965 GB, free: 4.191 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0185/1.263, allocations: 2.188 MB / 0.5986 GB, free: 1.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009232/1.272, allocations: 1.599 MB / 0.6002 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01608/1.288, allocations: 6.356 MB / 0.6064 GB, free: 9.754 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007769/1.296, allocations: 451.2 kB / 0.6068 GB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001476/1.298, allocations: 423.5 kB / 0.6072 GB, free: 8.902 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006265/1.304, allocations: 2.2 MB / 0.6094 GB, free: 6.688 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/1.305, allocations: 379.2 kB / 0.6097 GB, free: 6.312 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/1.318, allocations: 3.522 MB / 0.6132 GB, free: 2.766 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01055/1.328, allocations: 2.933 MB / 0.616 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-05/1.328, allocations: 4 kB / 0.616 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.664e-05/1.328, allocations: 15.95 kB / 0.616 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03584/1.364, allocations: 10.75 MB / 0.6265 GB, free: 4.797 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.963e-05/1.364, allocations: 16 kB / 0.6266 GB, free: 4.781 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003398/1.368, allocations: 387.3 kB / 0.6269 GB, free: 4.402 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005715/1.374, allocations: 0.9866 MB / 0.6279 GB, free: 3.402 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005159/1.374, allocations: 60.83 kB / 0.6279 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009017/1.383, allocations: 4.676 MB / 0.6325 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001615/1.385, allocations: 1.486 MB / 0.634 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01895/1.404, allocations: 7.849 MB / 0.6416 GB, free: 4.113 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002851/1.407, allocations: 0.6989 MB / 0.6423 GB, free: 3.391 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001161/1.408, allocations: 56.61 kB / 0.6424 GB, free: 3.336 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003736/1.412, allocations: 171.8 kB / 0.6425 GB, free: 3.168 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007566/1.413, allocations: 169.3 kB / 0.6427 GB, free: 3.004 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002664/1.413, allocations: 81.17 kB / 0.6428 GB, free: 2.926 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007392/1.42, allocations: 2.77 MB / 0.6455 GB, free: 152 kB / 426.7 MB Notification: Performance of sort global known variables: time 1.112e-06/1.42, allocations: 0 / 0.6455 GB, free: 152 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.2913/1.712, allocations: 1.192 MB / 0.6466 GB, free: 140.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01957/1.731, allocations: 11.7 MB / 0.6581 GB, free: 133.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01757/1.749, allocations: 6.108 MB / 0.664 GB, free: 131 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.071e-05/1.749, allocations: 3.281 kB / 0.664 GB, free: 131 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006777/1.756, allocations: 2.287 MB / 0.6663 GB, free: 130.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003635/1.759, allocations: 470.6 kB / 0.6667 GB, free: 129.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1252/1.885, allocations: 140.9 MB / 0.8043 GB, free: 6.262 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008431/1.893, allocations: 3.56 MB / 0.8077 GB, free: 2.672 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005547/1.899, allocations: 2.163 MB / 0.8099 GB, free: 0.5078 MB / 442.7 MB Notification: Performance of SimCode: time 1.462e-06/1.899, allocations: 0 / 0.8099 GB, free: 0.5078 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.431/7.33, allocations: 162.4 MB / 0.9685 GB, free: 133.1 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat