Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.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.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S",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.002401/0.002401, allocations: 186.8 kB / 16.4 MB, free: 5.746 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.109/2.109, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001136/0.001136, allocations: 94.03 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000407/0.0004069, allocations: 16 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3439, allocations: 47.56 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1365/0.4804, allocations: 81.92 MB / 456.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003326/0.4809, allocations: 71.95 kB / 456.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1045/0.5854, allocations: 27.89 MB / 484.5 MB, free: 2.832 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5855, allocations: 0 / 484.5 MB, free: 2.832 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.586e-05/0.5855, allocations: 4 kB / 484.5 MB, free: 2.828 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001009/0.5865, allocations: 0.6682 MB / 485.2 MB, free: 2.086 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.902e-05/0.5866, allocations: 12.02 kB / 485.2 MB, free: 2.074 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.505e-05/0.5867, allocations: 50.44 kB / 485.2 MB, free: 2.016 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.5868, allocations: 31.62 kB / 485.3 MB, free: 1.984 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000465/0.5873, allocations: 265.4 kB / 485.5 MB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.5873, allocations: 4 kB / 485.5 MB, free: 1.684 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.501e-05/0.5874, allocations: 12 kB / 485.5 MB, free: 1.672 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005453/0.588, allocations: 153.4 kB / 485.7 MB, free: 1.516 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.588, allocations: 0 / 485.7 MB, free: 1.516 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.935e-05/0.5881, allocations: 8 kB / 485.7 MB, free: 1.508 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.5881, allocations: 3.938 kB / 485.7 MB, free: 1.504 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002713/0.5884, allocations: 67.95 kB / 485.8 MB, free: 1.438 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.5895, allocations: 480.5 kB / 486.2 MB, free: 0.918 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/0.5899, allocations: 106.5 kB / 486.3 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.5899, allocations: 3.984 kB / 486.3 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000508/0.5904, allocations: 226.7 kB / 486.6 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 3.246e-06/0.5905, allocations: 0 / 486.6 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.001661/0.5921, allocations: 0.6621 MB / 487.2 MB, free: 15.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/0.5923, allocations: 170.2 kB / 487.4 MB, free: 15.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.5934, allocations: 464.5 kB / 487.8 MB, free: 15.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.313e-05/0.5935, allocations: 33.7 kB / 487.9 MB, free: 15.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.5936, allocations: 155.6 kB / 488 MB, free: 14.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.578e-05/0.5937, allocations: 23.72 kB / 488 MB, free: 14.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.896e-05/0.5938, allocations: 11.98 kB / 488.1 MB, free: 14.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.5939, allocations: 310.8 kB / 488.4 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.5942, allocations: 67.95 kB / 488.4 MB, free: 14.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002701/0.5945, allocations: 85.61 kB / 488.5 MB, free: 14.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.5948, allocations: 170.8 kB / 488.7 MB, free: 14.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.5949, allocations: 3.953 kB / 488.7 MB, free: 14.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001096/0.596, allocations: 416.3 kB / 489.1 MB, free: 13.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001283/0.5961, allocations: 122.8 kB / 489.2 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.5961, allocations: 0 / 489.2 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.5962, allocations: 4 kB / 489.2 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.908e-05/0.5962, allocations: 3.938 kB / 489.2 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.5962, allocations: 4.031 kB / 489.2 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.5965, allocations: 16.11 kB / 489.2 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000212/0.5967, allocations: 127.8 kB / 489.4 MB, free: 13.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.iNV3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006358/0.5974, allocations: 358.3 kB / 489.7 MB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.5975, allocations: 43.48 kB / 489.8 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001834/0.5977, allocations: 63.16 kB / 489.8 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.5977, allocations: 0 / 489.8 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5977, allocations: 0 / 489.8 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.5977, allocations: 4 kB / 489.8 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001808/0.5996, allocations: 0.8528 MB / 490.7 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.5996, allocations: 3.938 kB / 490.7 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.315e-05/0.5996, allocations: 0 / 490.7 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.5997, allocations: 0 / 490.7 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.23e-05/0.5997, allocations: 19.98 kB / 490.7 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.309e-06/0.5997, allocations: 0 / 490.7 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.5998, allocations: 3.984 kB / 490.7 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.601, allocations: 0.5719 MB / 491.3 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006118/0.6017, allocations: 244.5 kB / 491.5 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.6018, allocations: 12 kB / 491.5 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/0.6021, allocations: 11.98 kB / 491.5 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.6023, allocations: 43.89 kB / 491.6 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002031/0.6025, allocations: 111.9 kB / 491.7 MB, free: 11.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008774/0.6034, allocations: 390.9 kB / 492.1 MB, free: 10.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.6034, allocations: 0 / 492.1 MB, free: 10.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005264/0.604, allocations: 48 kB / 492.1 MB, free: 10.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001778/0.6058, allocations: 1.113 MB / 493.2 MB, free: 9.441 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009455/0.6068, allocations: 449.6 kB / 493.7 MB, free: 8.953 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.6068, allocations: 3.938 kB / 493.7 MB, free: 8.949 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005883/0.6074, allocations: 385.8 kB / 494 MB, free: 8.523 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009787/0.6084, allocations: 115.9 kB / 494.2 MB, free: 8.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00428/0.6127, allocations: 1.663 MB / 495.8 MB, free: 6.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006656/0.6135, allocations: 0.8181 MB / 496.6 MB, free: 5.836 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.452e-05/0.6136, allocations: 27.42 kB / 496.7 MB, free: 5.809 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6136, allocations: 0 / 496.7 MB, free: 5.809 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.745/3.358, allocations: 4.367 MB / 0.4893 GB, free: 1.398 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat