Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.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.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",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.002314/0.002314, 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.037/2.037, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001097/0.001096, allocations: 93.92 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.036e-05/3.042e-05, allocations: 4 kB / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1076, allocations: 47.57 MB / 369.2 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.468/0.5756, allocations: 102.4 MB / 471.5 MB, free: 6.754 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.576, allocations: 73.02 kB / 471.6 MB, free: 6.719 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9293/1.505, allocations: 193.5 MB / 0.6495 GB, free: 29.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.236e-06/1.505, allocations: 8 kB / 0.6495 GB, free: 29.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007625/1.506, allocations: 84 kB / 0.6496 GB, free: 29.39 MB / 410.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.01722/1.523, allocations: 4.683 MB / 0.6542 GB, free: 24.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.439e-05/1.524, allocations: 12.03 kB / 0.6542 GB, free: 24.64 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007937/1.524, allocations: 161.2 kB / 0.6544 GB, free: 24.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002185/1.527, allocations: 0.7487 MB / 0.6551 GB, free: 23.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02004/1.547, allocations: 4.516 MB / 0.6595 GB, free: 19.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/1.547, allocations: 66 kB / 0.6596 GB, free: 19.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008539/1.548, allocations: 99.89 kB / 0.6597 GB, free: 18.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005808/1.554, allocations: 1.46 MB / 0.6611 GB, free: 17.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.837e-05/1.554, allocations: 0 / 0.6611 GB, free: 17.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003222/1.554, allocations: 36 kB / 0.6611 GB, free: 17.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.719e-05/1.554, allocations: 47.95 kB / 0.6612 GB, free: 17.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005608/1.56, allocations: 1.359 MB / 0.6625 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02771/1.587, allocations: 5.865 MB / 0.6682 GB, free: 10.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003268/1.591, allocations: 0.8807 MB / 0.6691 GB, free: 9.113 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003502/1.594, allocations: 1.156 MB / 0.6702 GB, free: 7.961 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4463/2.041, allocations: 71.89 MB / 0.7404 GB, free: 34.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001105/2.042, allocations: 0.5099 MB / 0.7409 GB, free: 34.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 3.657e-06/2.042, allocations: 0.5312 kB / 0.7409 GB, free: 34.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.003419/2.045, allocations: 1.463 MB / 0.7423 GB, free: 33.75 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/2.046, allocations: 484.4 kB / 0.7428 GB, free: 33.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01096/2.057, allocations: 4.791 MB / 0.7475 GB, free: 32.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000289/2.057, allocations: 43.2 kB / 0.7475 GB, free: 32.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003167/2.06, allocations: 2.371 MB / 0.7498 GB, free: 32.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005575/2.061, allocations: 297.8 kB / 0.7501 GB, free: 32.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/2.061, allocations: 26.28 kB / 0.7502 GB, free: 32.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/2.061, allocations: 375.5 kB / 0.7505 GB, free: 31.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009177/2.062, allocations: 343.6 kB / 0.7508 GB, free: 31.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/2.063, allocations: 1.123 MB / 0.7519 GB, free: 30.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/2.065, allocations: 0.5215 MB / 0.7524 GB, free: 30.85 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.786e-05/2.065, allocations: 6 kB / 0.7525 GB, free: 30.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003541/2.068, allocations: 1.489 MB / 0.7539 GB, free: 30.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.023e-05/2.068, allocations: 17.36 kB / 0.7539 GB, free: 30.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002996/2.069, allocations: 162.5 kB / 0.7541 GB, free: 30.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.012e-05/2.069, allocations: 38.34 kB / 0.7541 GB, free: 30.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002249/2.071, allocations: 370.2 kB / 0.7545 GB, free: 30.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.997e-05/2.071, allocations: 48.61 kB / 0.7545 GB, free: 30.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003765/2.075, allocations: 202.3 kB / 0.7547 GB, free: 30.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004336/2.075, allocations: 124.1 kB / 0.7548 GB, free: 30.72 MB / 426.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 () * 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.0004185/2.076, allocations: 216.5 kB / 0.755 GB, free: 30.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001299/2.077, allocations: 0.7213 MB / 0.7557 GB, free: 30.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008423/2.085, allocations: 2.149 MB / 0.7578 GB, free: 30.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/2.085, allocations: 11 kB / 0.7578 GB, free: 30.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/2.085, allocations: 2.875 kB / 0.7578 GB, free: 30.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/2.086, allocations: 4.922 kB / 0.7579 GB, free: 30.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009555/2.095, allocations: 3.731 MB / 0.7615 GB, free: 29.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002759/2.095, allocations: 136.6 kB / 0.7616 GB, free: 29.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/2.097, allocations: 165.3 kB / 0.7618 GB, free: 29.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/2.097, allocations: 6.594 kB / 0.7618 GB, free: 29.63 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/2.097, allocations: 58.86 kB / 0.7618 GB, free: 29.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.696e-06/2.097, allocations: 3.562 kB / 0.7618 GB, free: 29.63 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/2.097, allocations: 8.984 kB / 0.7619 GB, free: 29.63 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004167/2.101, allocations: 2.1 MB / 0.7639 GB, free: 28.94 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002837/2.104, allocations: 0.938 MB / 0.7648 GB, free: 28.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001456/2.106, allocations: 15.69 kB / 0.7648 GB, free: 28.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002851/2.108, allocations: 53.53 kB / 0.7649 GB, free: 28.41 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/2.109, allocations: 101.2 kB / 0.765 GB, free: 28.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000188/2.109, allocations: 69.19 kB / 0.7651 GB, free: 28.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008722/2.118, allocations: 3.642 MB / 0.7686 GB, free: 28.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.403e-06/2.118, allocations: 0 / 0.7686 GB, free: 28.11 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00426/2.122, allocations: 1.18 MB / 0.7698 GB, free: 28.1 MB / 426.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) * 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.00708/2.129, allocations: 3.872 MB / 0.7735 GB, free: 26.85 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003061/2.132, allocations: 1.325 MB / 0.7748 GB, free: 26.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/2.132, allocations: 0 / 0.7748 GB, free: 26.58 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/2.134, allocations: 0.7179 MB / 0.7755 GB, free: 26.33 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005577/2.139, allocations: 0.9656 MB / 0.7765 GB, free: 26.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01884/2.158, allocations: 7.087 MB / 0.7834 GB, free: 24.26 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002679/2.161, allocations: 2.72 MB / 0.7861 GB, free: 23.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003731/2.165, allocations: 2.444 MB / 0.7884 GB, free: 23.47 MB / 426.7 MB Notification: Performance of SimCode: time 1.663e-06/2.165, allocations: 0 / 0.7884 GB, free: 23.47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.654/6.819, allocations: 90.95 MB / 0.8773 GB, free: 100.1 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat