Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.2 MB / 245 MB, free: 5.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009945/0.0009946, allocations: 96.56 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002725/0.0002725, allocations: 8 kB / 358 MB, free: 9.223 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2122, allocations: 51.48 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.3292, allocations: 105.2 MB / 0.5027 GB, free: 1.285 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.3294, allocations: 79.95 kB / 0.5027 GB, free: 1.207 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8289/1.158, allocations: 220.6 MB / 0.7182 GB, free: 67.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.006e-06/1.158, allocations: 0 / 0.7182 GB, free: 67.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002726/1.159, allocations: 88.19 kB / 0.7183 GB, free: 67.23 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.0113/1.17, allocations: 6.037 MB / 0.7242 GB, free: 63.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/1.17, allocations: 11 kB / 0.7242 GB, free: 63.86 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004686/1.171, allocations: 162 kB / 0.7244 GB, free: 63.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/1.172, allocations: 0.7441 MB / 0.7251 GB, free: 63.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008617/1.18, allocations: 4.537 MB / 0.7295 GB, free: 62.38 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.344e-05/1.18, allocations: 66.5 kB / 0.7296 GB, free: 62.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002873/1.181, allocations: 101.4 kB / 0.7297 GB, free: 62.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002522/1.183, allocations: 1.526 MB / 0.7312 GB, free: 62.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/1.183, allocations: 3.906 kB / 0.7312 GB, free: 62.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001647/1.183, allocations: 42.28 kB / 0.7312 GB, free: 62.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.86e-05/1.183, allocations: 35.22 kB / 0.7312 GB, free: 62.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002235/1.186, allocations: 1.516 MB / 0.7327 GB, free: 62.15 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01119/1.197, allocations: 5.852 MB / 0.7384 GB, free: 61.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/1.198, allocations: 1.023 MB / 0.7394 GB, free: 61.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0583/1.257, allocations: 72.66 MB / 0.8104 GB, free: 12.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009186/1.258, allocations: 0.5786 MB / 0.811 GB, free: 12.15 MB / 458.7 MB Notification: Performance of pre-optimization done (n=85): time 3.145e-06/1.258, allocations: 0 / 0.811 GB, free: 12.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=85): time 0.003654/1.261, allocations: 2.568 MB / 0.8135 GB, free: 9.441 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002044/1.262, allocations: 490.2 kB / 0.8139 GB, free: 8.855 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008694/1.27, allocations: 4.834 MB / 0.8186 GB, free: 4.055 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002218/1.271, allocations: 45.7 kB / 0.8187 GB, free: 4.004 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003022/1.274, allocations: 2.937 MB / 0.8216 GB, free: 1.059 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004368/1.274, allocations: 302.2 kB / 0.8218 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/1.274, allocations: 28 kB / 0.8219 GB, free: 0.7383 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/1.274, allocations: 369.9 kB / 0.8222 GB, free: 380 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009169/1.275, allocations: 422.1 kB / 0.8226 GB, free: 15.96 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/1.277, allocations: 1.201 MB / 0.8238 GB, free: 14.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/1.278, allocations: 0.5905 MB / 0.8244 GB, free: 13.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/1.278, allocations: 4 kB / 0.8244 GB, free: 13.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004487/1.282, allocations: 2.249 MB / 0.8266 GB, free: 11.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.094e-05/1.282, allocations: 12 kB / 0.8266 GB, free: 11.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002362/1.283, allocations: 160 kB / 0.8267 GB, free: 11.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.371e-05/1.283, allocations: 36 kB / 0.8268 GB, free: 11.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/1.284, allocations: 373 kB / 0.8271 GB, free: 11.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.643e-05/1.284, allocations: 51.95 kB / 0.8272 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00293/1.287, allocations: 202 kB / 0.8274 GB, free: 11.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000247/1.287, allocations: 120 kB / 0.8275 GB, free: 10.92 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.002393/1.29, allocations: 0.7302 MB / 0.8282 GB, free: 10.21 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001525/1.291, allocations: 0.7141 MB / 0.8289 GB, free: 9.484 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006603/1.298, allocations: 2.271 MB / 0.8311 GB, free: 7.312 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/1.298, allocations: 8 kB / 0.8311 GB, free: 7.305 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/1.298, allocations: 3.938 kB / 0.8311 GB, free: 7.301 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/1.298, allocations: 3.984 kB / 0.8311 GB, free: 7.297 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009477/1.307, allocations: 3.861 MB / 0.8349 GB, free: 3.395 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001753/1.308, allocations: 140 kB / 0.835 GB, free: 3.258 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007645/1.308, allocations: 157.5 kB / 0.8352 GB, free: 3.109 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-05/1.308, allocations: 8.062 kB / 0.8352 GB, free: 3.102 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/1.308, allocations: 59.98 kB / 0.8353 GB, free: 3.043 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/1.308, allocations: 0 / 0.8353 GB, free: 3.043 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.308, allocations: 7.953 kB / 0.8353 GB, free: 3.035 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004014/1.312, allocations: 2.307 MB / 0.8375 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003104/1.316, allocations: 0.9352 MB / 0.8384 GB, free: 15.71 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001521/1.317, allocations: 20 kB / 0.8384 GB, free: 15.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002068/1.319, allocations: 51.95 kB / 0.8385 GB, free: 15.64 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/1.319, allocations: 96.47 kB / 0.8386 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/1.32, allocations: 67.98 kB / 0.8387 GB, free: 15.48 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007496/1.327, allocations: 3.694 MB / 0.8423 GB, free: 11.81 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.327, allocations: 0 / 0.8423 GB, free: 11.81 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003961/1.331, allocations: 1.171 MB / 0.8434 GB, free: 10.64 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * 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.007495/1.339, allocations: 4.09 MB / 0.8474 GB, free: 6.762 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002913/1.342, allocations: 1.465 MB / 0.8488 GB, free: 5.266 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/1.342, allocations: 128 / 0.8488 GB, free: 5.266 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/1.343, allocations: 0.7902 MB / 0.8496 GB, free: 4.426 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005904/1.349, allocations: 1.156 MB / 0.8507 GB, free: 3.305 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3089/1.658, allocations: 59.42 MB / 0.9088 GB, free: 69.36 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001832/1.66, allocations: 2.713 MB / 0.9114 GB, free: 68.57 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002801/1.662, allocations: 0.7331 MB / 0.9121 GB, free: 68.53 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002179/1.665, allocations: 2.412 MB / 0.9145 GB, free: 68.52 MB / 490.7 MB Notification: Performance of SimCode: time 1.994e-06/1.665, allocations: 0 / 0.9145 GB, free: 68.52 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1504/1.815, allocations: 107 MB / 1.019 GB, free: 4.055 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001391/1.815, allocations: 175.2 kB / 1.019 GB, free: 3.812 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.824/8.639, allocations: 3.938 kB / 1.019 GB, free: 3.809 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat