Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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.001585/0.001584, allocations: 180.2 kB / 13.65 MB, free: 1.66 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.021/2.021, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001081/0.001081, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.772e-05/3.784e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09769/0.09777, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4465/0.5443, allocations: 102.2 MB / 471.4 MB, free: 7.238 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.5446, allocations: 66.41 kB / 471.5 MB, free: 7.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7058/1.25, allocations: 127.4 MB / 0.5848 GB, free: 89.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.25, allocations: 0 / 0.5848 GB, free: 89.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001743/1.251, allocations: 45.84 kB / 0.5848 GB, free: 89.64 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006668/1.257, allocations: 2.811 MB / 0.5876 GB, free: 87.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/1.257, allocations: 8.969 kB / 0.5876 GB, free: 87.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002457/1.258, allocations: 96.28 kB / 0.5877 GB, free: 87.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007311/1.258, allocations: 420.2 kB / 0.5881 GB, free: 87.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006567/1.265, allocations: 2.425 MB / 0.5905 GB, free: 86.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.08e-05/1.265, allocations: 44.64 kB / 0.5905 GB, free: 86.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002051/1.265, allocations: 55.72 kB / 0.5905 GB, free: 86.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/1.267, allocations: 0.7955 MB / 0.5913 GB, free: 86.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/1.267, allocations: 0 / 0.5913 GB, free: 86.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001517/1.267, allocations: 19.56 kB / 0.5913 GB, free: 86.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.162e-05/1.267, allocations: 20.73 kB / 0.5914 GB, free: 86.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/1.269, allocations: 0.7147 MB / 0.5921 GB, free: 85.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009354/1.278, allocations: 3.29 MB / 0.5953 GB, free: 84.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/1.28, allocations: 488.5 kB / 0.5957 GB, free: 84.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/1.281, allocations: 0.584 MB / 0.5963 GB, free: 83.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04659/1.327, allocations: 36.21 MB / 0.6317 GB, free: 43.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007038/1.328, allocations: 317.6 kB / 0.632 GB, free: 43.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.068e-06/1.328, allocations: 0 / 0.632 GB, free: 43.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002049/1.33, allocations: 0.8208 MB / 0.6328 GB, free: 42.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/1.33, allocations: 273 kB / 0.633 GB, free: 42.33 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005833/1.336, allocations: 2.663 MB / 0.6356 GB, free: 39.67 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001915/1.336, allocations: 41.69 kB / 0.6357 GB, free: 39.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001619/1.338, allocations: 1.301 MB / 0.6369 GB, free: 38.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003373/1.338, allocations: 161.1 kB / 0.6371 GB, free: 38.17 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.115e-05/1.339, allocations: 16 kB / 0.6371 GB, free: 38.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.878e-05/1.339, allocations: 346.8 kB / 0.6374 GB, free: 37.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005435/1.339, allocations: 190 kB / 0.6376 GB, free: 37.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000765/1.34, allocations: 0.5932 MB / 0.6382 GB, free: 36.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006671/1.341, allocations: 288.6 kB / 0.6385 GB, free: 36.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/1.341, allocations: 11.94 kB / 0.6385 GB, free: 36.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001911/1.343, allocations: 0.8035 MB / 0.6393 GB, free: 35.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/1.343, allocations: 11.94 kB / 0.6393 GB, free: 35.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000158/1.343, allocations: 87.98 kB / 0.6394 GB, free: 35.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.445e-05/1.343, allocations: 16 kB / 0.6394 GB, free: 35.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/1.344, allocations: 216.1 kB / 0.6396 GB, free: 35.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.261e-05/1.344, allocations: 31.81 kB / 0.6396 GB, free: 35.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002274/1.347, allocations: 127 kB / 0.6397 GB, free: 35.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002031/1.347, allocations: 64 kB / 0.6398 GB, free: 35.19 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.000262/1.347, allocations: 164 kB / 0.64 GB, free: 35.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007448/1.348, allocations: 407.1 kB / 0.6403 GB, free: 34.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004513/1.352, allocations: 1.164 MB / 0.6415 GB, free: 33.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/1.352, allocations: 4 kB / 0.6415 GB, free: 33.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/1.352, allocations: 0 / 0.6415 GB, free: 33.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/1.352, allocations: 7.938 kB / 0.6415 GB, free: 33.44 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005253/1.358, allocations: 2.192 MB / 0.6436 GB, free: 31.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001416/1.358, allocations: 71.98 kB / 0.6437 GB, free: 31.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009081/1.359, allocations: 103.9 kB / 0.6438 GB, free: 31.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.138e-05/1.359, allocations: 4 kB / 0.6438 GB, free: 31.01 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.725e-05/1.359, allocations: 39.94 kB / 0.6438 GB, free: 30.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.604e-06/1.359, allocations: 4 kB / 0.6439 GB, free: 30.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.359, allocations: 3.938 kB / 0.6439 GB, free: 30.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/1.362, allocations: 1.238 MB / 0.6451 GB, free: 29.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001561/1.363, allocations: 0.5155 MB / 0.6456 GB, free: 29.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000745/1.364, allocations: 8 kB / 0.6456 GB, free: 29.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/1.366, allocations: 47.95 kB / 0.6456 GB, free: 29.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/1.366, allocations: 60 kB / 0.6457 GB, free: 29.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/1.366, allocations: 40 kB / 0.6457 GB, free: 29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004323/1.37, allocations: 2.027 MB / 0.6477 GB, free: 26.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.37, allocations: 0 / 0.6477 GB, free: 26.97 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002558/1.373, allocations: 0.6673 MB / 0.6483 GB, free: 26.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.004324/1.377, allocations: 2.683 MB / 0.651 GB, free: 23.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001593/1.379, allocations: 0.708 MB / 0.6517 GB, free: 23.03 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.379, allocations: 4 kB / 0.6517 GB, free: 23.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007254/1.38, allocations: 399 kB / 0.652 GB, free: 22.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002933/1.383, allocations: 0.5195 MB / 0.6526 GB, free: 22.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009685/1.392, allocations: 3.877 MB / 0.6563 GB, free: 18.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/1.394, allocations: 1.778 MB / 0.6581 GB, free: 16.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001847/1.396, allocations: 1.265 MB / 0.6593 GB, free: 15.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/1.396, allocations: 0 / 0.6593 GB, free: 15.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.773/5.168, allocations: 50.57 MB / 0.7087 GB, free: 94.45 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat