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.002088/0.002088, allocations: 178.3 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.996/1.996, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001098, allocations: 90.34 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.157e-05/2.155e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3323, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1597/0.4921, allocations: 97 MB / 459.4 MB, free: 5.16 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003209/0.4925, allocations: 95.92 kB / 459.5 MB, free: 5.066 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5774/1.07, allocations: 71.79 MB / 0.5189 GB, free: 97.58 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.076e-06/1.07, allocations: 0 / 0.5189 GB, free: 97.58 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002414/1.07, allocations: 69.41 kB / 0.5189 GB, free: 97.58 MB / 395.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.01367/1.084, allocations: 3.401 MB / 0.5223 GB, free: 96.04 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/1.084, allocations: 7.594 kB / 0.5223 GB, free: 96.04 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01562/1.1, allocations: 2.091 MB / 0.5243 GB, free: 95.78 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01514/1.115, allocations: 4.048 MB / 0.5283 GB, free: 95.23 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/1.115, allocations: 111.3 kB / 0.5284 GB, free: 95.23 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001923/1.117, allocations: 205.5 kB / 0.5286 GB, free: 95.23 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01235/1.129, allocations: 5.114 MB / 0.5336 GB, free: 94.44 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01864/1.148, allocations: 8.04 MB / 0.5414 GB, free: 89.78 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002012/1.148, allocations: 64.94 kB / 0.5415 GB, free: 89.74 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00108/1.149, allocations: 30.22 kB / 0.5415 GB, free: 89.74 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00176/1.151, allocations: 0.8825 MB / 0.5424 GB, free: 89.59 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05315/1.204, allocations: 41.29 MB / 0.5827 GB, free: 55.2 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004234/1.209, allocations: 2.512 MB / 0.5851 GB, free: 52.74 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002582/1.211, allocations: 1.393 MB / 0.5865 GB, free: 51.33 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007691/1.212, allocations: 0.6504 MB / 0.5871 GB, free: 50.58 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/1.212, allocations: 51.08 kB / 0.5872 GB, free: 50.52 MB / 395.1 MB Notification: Performance of pre-optimization done (n=129): time 5.069e-06/1.212, allocations: 4 kB / 0.5872 GB, free: 50.51 MB / 395.1 MB Notification: Performance of matching and sorting (n=138): time 0.03452/1.247, allocations: 12.26 MB / 0.5992 GB, free: 38.12 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/1.247, allocations: 174.9 kB / 0.5993 GB, free: 37.91 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005505/1.252, allocations: 2.81 MB / 0.6021 GB, free: 35.1 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003673/1.253, allocations: 25.7 kB / 0.6021 GB, free: 35.07 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002206/1.255, allocations: 2.782 MB / 0.6048 GB, free: 32.25 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000862/1.256, allocations: 0.5401 MB / 0.6053 GB, free: 31.7 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000583/1.256, allocations: 0 / 0.6053 GB, free: 31.7 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003426/1.257, allocations: 0.5462 MB / 0.6059 GB, free: 31.14 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003613/1.26, allocations: 1.608 MB / 0.6074 GB, free: 29.53 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005838/1.266, allocations: 5.138 MB / 0.6125 GB, free: 22.59 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005968/1.272, allocations: 2.868 MB / 0.6153 GB, free: 19.73 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.977e-05/1.272, allocations: 36 kB / 0.6153 GB, free: 19.69 MB / 395.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01589/1.288, allocations: 5.985 MB / 0.6211 GB, free: 13.7 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.624e-05/1.289, allocations: 60 kB / 0.6212 GB, free: 13.64 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001581/1.289, allocations: 128 kB / 0.6213 GB, free: 13.52 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009461/1.29, allocations: 345 kB / 0.6216 GB, free: 13.18 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007922/1.298, allocations: 1.345 MB / 0.623 GB, free: 11.83 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002875/1.301, allocations: 2.21 MB / 0.6251 GB, free: 9.508 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005634/1.306, allocations: 183.5 kB / 0.6253 GB, free: 9.328 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001279/1.308, allocations: 348 kB / 0.6256 GB, free: 8.988 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (697): * Single equations (assignments): 693 * 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.00121/1.309, allocations: 428.8 kB / 0.626 GB, free: 8.562 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0081/1.317, allocations: 2.667 MB / 0.6286 GB, free: 5.887 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009777/1.318, allocations: 292.3 kB / 0.6289 GB, free: 5.598 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007617/1.326, allocations: 2.303 MB / 0.6312 GB, free: 3.266 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-05/1.326, allocations: 20.03 kB / 0.6312 GB, free: 3.246 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/1.326, allocations: 4 kB / 0.6312 GB, free: 3.242 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-05/1.326, allocations: 7.969 kB / 0.6312 GB, free: 3.234 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01916/1.345, allocations: 5.724 MB / 0.6368 GB, free: 13.47 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.332e-05/1.345, allocations: 0 / 0.6368 GB, free: 13.47 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00181/1.347, allocations: 183.8 kB / 0.637 GB, free: 13.29 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004203/1.351, allocations: 0.7076 MB / 0.6376 GB, free: 12.58 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003393/1.352, allocations: 8 kB / 0.6377 GB, free: 12.57 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009761/1.361, allocations: 4.295 MB / 0.6419 GB, free: 8.172 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/1.361, allocations: 4.031 kB / 0.6419 GB, free: 8.168 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01269/1.374, allocations: 4.465 MB / 0.6462 GB, free: 3.625 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002097/1.376, allocations: 0.5089 MB / 0.6467 GB, free: 3.094 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007942/1.377, allocations: 0 / 0.6467 GB, free: 3.094 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002324/1.379, allocations: 51.91 kB / 0.6468 GB, free: 3.043 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004796/1.38, allocations: 84.61 kB / 0.6468 GB, free: 2.961 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/1.38, allocations: 36 kB / 0.6469 GB, free: 2.926 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005507/1.386, allocations: 1.869 MB / 0.6487 GB, free: 1.062 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.252e-06/1.386, allocations: 0 / 0.6487 GB, free: 1.062 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.01243/1.398, allocations: 0.7031 MB / 0.6494 GB, free: 368 kB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * 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.2891/1.687, allocations: 5.439 MB / 0.6547 GB, free: 100.3 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.009756/1.697, allocations: 3.815 MB / 0.6584 GB, free: 100.2 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/1.697, allocations: 0 / 0.6584 GB, free: 100.2 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002645/1.7, allocations: 1.103 MB / 0.6595 GB, free: 100.1 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002793/1.703, allocations: 300.1 kB / 0.6598 GB, free: 100.1 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02556/1.728, allocations: 7.326 MB / 0.6669 GB, free: 98.74 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006058/1.734, allocations: 2.872 MB / 0.6697 GB, free: 97.97 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004037/1.738, allocations: 1.561 MB / 0.6713 GB, free: 96.94 MB / 411.1 MB Notification: Performance of SimCode: time 1.412e-06/1.739, allocations: 0 / 0.6713 GB, free: 96.94 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.084/5.822, allocations: 81.06 MB / 0.7504 GB, free: 41.41 MB / 411.1 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