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.001616/0.001615, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.156/2.156, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001098/0.001098, allocations: 93.92 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.705e-05/3.722e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 47.58 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4572/0.5636, allocations: 81.82 MB / 451 MB, free: 11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.564, allocations: 67.72 kB / 451.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1538/0.7178, allocations: 28.09 MB / 479.2 MB, free: 1.133 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7179, allocations: 0 / 479.2 MB, free: 1.133 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.7179, allocations: 4 kB / 479.2 MB, free: 1.129 MB / 346.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.0008395/0.7188, allocations: 0.6215 MB / 479.8 MB, free: 448 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.7188, allocations: 12.03 kB / 479.8 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.45e-05/0.7189, allocations: 42.55 kB / 479.8 MB, free: 384 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.744e-05/0.719, allocations: 31.62 kB / 479.9 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.7195, allocations: 257.5 kB / 480.1 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.7195, allocations: 4 kB / 480.1 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.658e-05/0.7196, allocations: 12 kB / 480.1 MB, free: 36 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.7201, allocations: 149.6 kB / 480.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.7201, allocations: 0 / 480.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.177e-05/0.7202, allocations: 4 kB / 480.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.7202, allocations: 4 kB / 480.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002218/0.7205, allocations: 63.97 kB / 480.4 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.7216, allocations: 488.3 kB / 480.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.7219, allocations: 102.5 kB / 480.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002356/0.7222, allocations: 92.89 kB / 481 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.507e-06/0.7222, allocations: 0 / 481 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004595/0.7227, allocations: 226.6 kB / 481.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 3.336e-06/0.7227, allocations: 0 / 481.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.001109/0.7238, allocations: 436 kB / 481.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.724, allocations: 174.1 kB / 481.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.725, allocations: 462.5 kB / 482.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.576e-05/0.7251, allocations: 33.7 kB / 482.3 MB, free: 13.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.7252, allocations: 163.6 kB / 482.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.032e-05/0.7253, allocations: 27.66 kB / 482.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.153e-05/0.7253, allocations: 0 / 482.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.7255, allocations: 318.8 kB / 482.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002177/0.7257, allocations: 63.98 kB / 482.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.7259, allocations: 67.97 kB / 482.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.7262, allocations: 171.4 kB / 483.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.7263, allocations: 4 kB / 483.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009633/0.7272, allocations: 412.4 kB / 483.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.7274, allocations: 122.8 kB / 483.6 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.7274, allocations: 0 / 483.6 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.7274, allocations: 4 kB / 483.6 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.636e-05/0.7275, allocations: 3.938 kB / 483.6 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.7275, allocations: 0 / 483.6 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002629/0.7277, allocations: 12 kB / 483.7 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002228/0.728, allocations: 127.7 kB / 483.8 MB, free: 12.12 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.y,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 () * 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.0002885/0.7283, allocations: 257.4 kB / 484 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.799e-05/0.7284, allocations: 39.53 kB / 484.1 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002306/0.7286, allocations: 59.44 kB / 484.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.7286, allocations: 0 / 484.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.7287, allocations: 0 / 484.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.7287, allocations: 3.984 kB / 484.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.7303, allocations: 0.8447 MB / 485 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.7304, allocations: 128 / 485 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.511e-05/0.7304, allocations: 4 kB / 485 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.7304, allocations: 4 kB / 485 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.059e-05/0.7305, allocations: 19.98 kB / 485 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.7305, allocations: 0 / 485 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.7305, allocations: 0 / 485 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.7316, allocations: 0.5603 MB / 485.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006525/0.7323, allocations: 248.5 kB / 485.8 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.7325, allocations: 8 kB / 485.8 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002666/0.7327, allocations: 16 kB / 485.8 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.7329, allocations: 35.95 kB / 485.9 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002004/0.7331, allocations: 127.7 kB / 486 MB, free: 9.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008018/0.7339, allocations: 384.9 kB / 486.4 MB, free: 9.355 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.734, allocations: 0 / 486.4 MB, free: 9.355 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004518/0.7344, allocations: 48 kB / 486.4 MB, free: 9.309 MB / 362.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) * 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.001588/0.736, allocations: 1.109 MB / 487.5 MB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008227/0.7369, allocations: 449.5 kB / 488 MB, free: 7.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.7369, allocations: 0 / 488 MB, free: 7.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005212/0.7374, allocations: 385.6 kB / 488.3 MB, free: 7.234 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008634/0.7383, allocations: 105 kB / 488.4 MB, free: 7.133 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002066/0.7404, allocations: 0.659 MB / 489.1 MB, free: 6.422 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006504/0.7411, allocations: 0.8143 MB / 489.9 MB, free: 5.578 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.011e-05/0.7412, allocations: 23.44 kB / 489.9 MB, free: 5.555 MB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/0.7412, allocations: 0 / 489.9 MB, free: 5.555 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.781/3.522, allocations: 4.399 MB / 494.3 MB, free: 1.113 MB / 362.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