Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.002278/0.002278, allocations: 186.4 kB / 16.41 MB, free: 5.727 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.125/2.125, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001155/0.001154, allocations: 100.3 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003862/0.0003863, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3334, allocations: 47.57 MB / 374.6 MB, free: 45.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1629/0.4963, allocations: 97.77 MB / 472.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003474/0.4967, allocations: 91.94 kB / 472.5 MB, free: 14.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5743/1.071, allocations: 73.16 MB / 0.5329 GB, free: 83.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.266e-06/1.071, allocations: 4 kB / 0.5329 GB, free: 83.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002156/1.071, allocations: 71.92 kB / 0.5329 GB, free: 83.23 MB / 378.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.01365/1.085, allocations: 3.618 MB / 0.5365 GB, free: 79.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/1.085, allocations: 8.031 kB / 0.5365 GB, free: 79.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002706/1.088, allocations: 0.6471 MB / 0.5371 GB, free: 78.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01587/1.104, allocations: 2.085 MB / 0.5392 GB, free: 76.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01505/1.119, allocations: 4.077 MB / 0.5431 GB, free: 72.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003012/1.119, allocations: 262.9 kB / 0.5434 GB, free: 72.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001985/1.121, allocations: 347.8 kB / 0.5437 GB, free: 72.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02496/1.146, allocations: 8.99 MB / 0.5525 GB, free: 62.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002438/1.146, allocations: 55.47 kB / 0.5525 GB, free: 62.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001504/1.148, allocations: 175.9 kB / 0.5527 GB, free: 61.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002008/1.15, allocations: 0.8839 MB / 0.5536 GB, free: 60.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02118/1.171, allocations: 7.277 MB / 0.5607 GB, free: 53.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05859/1.23, allocations: 42.96 MB / 0.6026 GB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01248/1.242, allocations: 3.298 MB / 0.6059 GB, free: 5.863 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01005/1.252, allocations: 4.436 MB / 0.6102 GB, free: 1.219 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/1.253, allocations: 51.02 kB / 0.6102 GB, free: 1.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 5.18e-06/1.253, allocations: 0 / 0.6102 GB, free: 1.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.05323/1.306, allocations: 11.66 MB / 0.6216 GB, free: 5.293 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/1.306, allocations: 149.1 kB / 0.6218 GB, free: 5.117 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009538/1.316, allocations: 3.338 MB / 0.625 GB, free: 1.789 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003949/1.316, allocations: 45.7 kB / 0.6251 GB, free: 1.738 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003485/1.32, allocations: 2.69 MB / 0.6277 GB, free: 15.01 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001072/1.321, allocations: 0.5209 MB / 0.6282 GB, free: 14.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007755/1.321, allocations: 104 kB / 0.6283 GB, free: 14.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005692/1.322, allocations: 0.5417 MB / 0.6288 GB, free: 13.83 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005261/1.327, allocations: 1.673 MB / 0.6305 GB, free: 12.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009068/1.336, allocations: 5.094 MB / 0.6354 GB, free: 5.324 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007888/1.344, allocations: 2.878 MB / 0.6383 GB, free: 2.445 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001297/1.345, allocations: 32.28 kB / 0.6383 GB, free: 2.414 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.3151/1.66, allocations: 6.559 MB / 0.6447 GB, free: 101.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/1.66, allocations: 59.91 kB / 0.6448 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002021/1.66, allocations: 121.4 kB / 0.6449 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/1.661, allocations: 332.1 kB / 0.6452 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008651/1.67, allocations: 1.294 MB / 0.6464 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003821/1.674, allocations: 2.319 MB / 0.6487 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005808/1.68, allocations: 295 kB / 0.649 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001405/1.681, allocations: 331.6 kB / 0.6493 GB, free: 100.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * 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 (666): * Single equations (assignments): 662 * 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.005411/1.686, allocations: 1.795 MB / 0.6511 GB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008646/1.687, allocations: 311.4 kB / 0.6514 GB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008341/1.696, allocations: 2.359 MB / 0.6537 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.867e-05/1.696, allocations: 16.89 kB / 0.6537 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/1.696, allocations: 3.906 kB / 0.6537 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.508e-05/1.696, allocations: 12.98 kB / 0.6537 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01947/1.715, allocations: 5.942 MB / 0.6595 GB, free: 99.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.617e-05/1.715, allocations: 0 / 0.6595 GB, free: 99.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/1.717, allocations: 173.3 kB / 0.6597 GB, free: 99.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003976/1.721, allocations: 0.7117 MB / 0.6604 GB, free: 99.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003175/1.721, allocations: 29.2 kB / 0.6604 GB, free: 99.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009121/1.731, allocations: 4.564 MB / 0.6648 GB, free: 97.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.731, allocations: 0 / 0.6648 GB, free: 97.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0114/1.742, allocations: 4.447 MB / 0.6692 GB, free: 96.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001997/1.744, allocations: 0.536 MB / 0.6697 GB, free: 95.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000997/1.745, allocations: 34.11 kB / 0.6697 GB, free: 95.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002527/1.748, allocations: 68.83 kB / 0.6698 GB, free: 95.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004715/1.748, allocations: 61.48 kB / 0.6699 GB, free: 95.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/1.748, allocations: 35.81 kB / 0.6699 GB, free: 95.78 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006316/1.755, allocations: 2.321 MB / 0.6722 GB, free: 95 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.755, allocations: 3.5 kB / 0.6722 GB, free: 95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006535/1.761, allocations: 0.8285 MB / 0.673 GB, free: 94.9 MB / 410.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.01259/1.774, allocations: 5.378 MB / 0.6782 GB, free: 92.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009439/1.783, allocations: 3.993 MB / 0.6821 GB, free: 90.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/1.783, allocations: 0 / 0.6821 GB, free: 90.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002471/1.786, allocations: 1.111 MB / 0.6832 GB, free: 90.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003224/1.789, allocations: 360.8 kB / 0.6836 GB, free: 90.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05023/1.839, allocations: 100 MB / 0.7812 GB, free: 5.031 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007029/1.847, allocations: 2.87 MB / 0.784 GB, free: 2.824 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004698/1.851, allocations: 1.566 MB / 0.7855 GB, free: 1.375 MB / 426.7 MB Notification: Performance of SimCode: time 1.493e-06/1.851, allocations: 0 / 0.7855 GB, free: 1.375 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.302/6.153, allocations: 83.06 MB / 0.8667 GB, free: 99.15 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat does not exist to compare? outputFormat=mat