Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009728/0.0009729, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 221.3 MB / 235.5 MB, free: 2.926 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008609/0.000861, allocations: 90.12 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.511e-05/2.514e-05, allocations: 7.984 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09502/0.09506, allocations: 50.4 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2978/0.3929, allocations: 82.73 MB / 477.1 MB, free: 4.746 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.3932, allocations: 63.97 kB / 477.1 MB, free: 4.684 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05567/0.4489, allocations: 28.45 MB / 0.4937 GB, free: 8.367 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.4489, allocations: 3.938 kB / 0.4937 GB, free: 8.363 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.4489, allocations: 8 kB / 0.4937 GB, free: 8.355 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005635/0.4495, allocations: 0.6227 MB / 0.4944 GB, free: 7.664 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.4495, allocations: 12.03 kB / 0.4944 GB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.959e-05/0.4496, allocations: 34.56 kB / 0.4944 GB, free: 7.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.435e-05/0.4497, allocations: 35.58 kB / 0.4944 GB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.45, allocations: 265.4 kB / 0.4947 GB, free: 7.273 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.45, allocations: 8 kB / 0.4947 GB, free: 7.266 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.518e-05/0.4501, allocations: 8 kB / 0.4947 GB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000263/0.4503, allocations: 145.6 kB / 0.4948 GB, free: 7.109 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.4503, allocations: 7.938 kB / 0.4948 GB, free: 7.102 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.4504, allocations: 8 kB / 0.4949 GB, free: 7.094 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.4504, allocations: 3.938 kB / 0.4949 GB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.4505, allocations: 63.94 kB / 0.4949 GB, free: 7.027 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006845/0.4512, allocations: 484.5 kB / 0.4954 GB, free: 6.504 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.4514, allocations: 102.5 kB / 0.4955 GB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.4516, allocations: 84.91 kB / 0.4956 GB, free: 6.309 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.4516, allocations: 0 / 0.4956 GB, free: 6.309 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002955/0.4519, allocations: 230.5 kB / 0.4958 GB, free: 6.059 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.362e-06/0.4519, allocations: 0 / 0.4958 GB, free: 6.059 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006516/0.4525, allocations: 436.1 kB / 0.4962 GB, free: 5.602 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.328e-05/0.4527, allocations: 170.2 kB / 0.4964 GB, free: 5.398 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005419/0.4532, allocations: 466.5 kB / 0.4968 GB, free: 4.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.4532, allocations: 29.7 kB / 0.4968 GB, free: 4.895 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.321e-05/0.4533, allocations: 105.1 kB / 0.4969 GB, free: 4.789 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.654e-05/0.4534, allocations: 27.7 kB / 0.497 GB, free: 4.762 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.4534, allocations: 4 kB / 0.497 GB, free: 4.758 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.4535, allocations: 322.8 kB / 0.4973 GB, free: 4.434 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.4536, allocations: 63.98 kB / 0.4973 GB, free: 4.371 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.4537, allocations: 57.53 kB / 0.4974 GB, free: 4.316 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.4539, allocations: 178.8 kB / 0.4976 GB, free: 4.117 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4539, allocations: 0 / 0.4976 GB, free: 4.117 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005448/0.4545, allocations: 420.8 kB / 0.498 GB, free: 3.676 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.817e-05/0.4545, allocations: 126.8 kB / 0.4981 GB, free: 3.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.4546, allocations: 3.953 kB / 0.4981 GB, free: 3.523 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.4546, allocations: 0 / 0.4981 GB, free: 3.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.714e-05/0.4546, allocations: 0 / 0.4981 GB, free: 3.523 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.4546, allocations: 4 kB / 0.4981 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.4548, allocations: 11.98 kB / 0.4981 GB, free: 3.508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.4549, allocations: 127.8 kB / 0.4982 GB, free: 3.383 MB / 378.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.0001808/0.4551, allocations: 237.5 kB / 0.4984 GB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.035e-05/0.4552, allocations: 43.52 kB / 0.4985 GB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.4553, allocations: 67.42 kB / 0.4986 GB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.4553, allocations: 7.953 kB / 0.4986 GB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4553, allocations: 0 / 0.4986 GB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4553, allocations: 3.984 kB / 0.4986 GB, free: 3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009632/0.4563, allocations: 0.8251 MB / 0.4994 GB, free: 2.094 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4563, allocations: 4 kB / 0.4994 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.059e-05/0.4563, allocations: 3.984 kB / 0.4994 GB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.84e-06/0.4563, allocations: 7.953 kB / 0.4994 GB, free: 2.078 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.4563, allocations: 19.98 kB / 0.4994 GB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.4564, allocations: 4 kB / 0.4994 GB, free: 2.055 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4564, allocations: 3.938 kB / 0.4994 GB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006485/0.457, allocations: 0.5487 MB / 0.4999 GB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003286/0.4574, allocations: 256.5 kB / 0.5002 GB, free: 1.191 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.043e-05/0.4574, allocations: 23.95 kB / 0.5002 GB, free: 1.168 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.4576, allocations: 15.98 kB / 0.5002 GB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.4577, allocations: 35.95 kB / 0.5003 GB, free: 1.117 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/0.4578, allocations: 115.8 kB / 0.5004 GB, free: 1.004 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004315/0.4583, allocations: 384.9 kB / 0.5007 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4583, allocations: 0 / 0.5007 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000265/0.4586, allocations: 40 kB / 0.5008 GB, free: 0.5898 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) * 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.0009712/0.4595, allocations: 1.117 MB / 0.5019 GB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005053/0.4601, allocations: 445.5 kB / 0.5023 GB, free: 14.94 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.4601, allocations: 0 / 0.5023 GB, free: 14.94 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003105/0.4604, allocations: 377.5 kB / 0.5027 GB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005037/0.4609, allocations: 113.4 kB / 0.5028 GB, free: 14.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.462, allocations: 0.6145 MB / 0.5034 GB, free: 13.75 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.4624, allocations: 0.8026 MB / 0.5041 GB, free: 12.92 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.146e-05/0.4624, allocations: 8.656 kB / 0.5042 GB, free: 12.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.227e-05/0.4625, allocations: 27.42 kB / 0.5042 GB, free: 12.88 MB / 394.7 MB Notification: Performance of SimCode: time 6.31e-07/0.4625, allocations: 0 / 0.5042 GB, free: 12.88 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01694/0.4795, allocations: 7.052 MB / 0.5111 GB, free: 5.859 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/0.4796, allocations: 145.7 kB / 0.5112 GB, free: 5.637 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.571/2.051, allocations: 0 / 0.5112 GB, free: 5.637 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat