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.002405/0.002409, allocations: 189 kB / 16.4 MB, free: 5.621 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.162/2.162, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001165/0.001164, allocations: 90.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005184/0.0005187, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1019, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0194/0.1214, allocations: 11.75 MB / 386.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.301/0.4224, allocations: 17.06 MB / 403.4 MB, free: 6.934 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002905/0.4254, allocations: 30.31 kB / 403.5 MB, free: 6.922 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00486/0.4303, allocations: 0.9884 MB / 404.5 MB, free: 6.648 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01099/0.4414, allocations: 2.109 MB / 406.6 MB, free: 5.297 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007169/0.4486, allocations: 1.147 MB / 407.7 MB, free: 4.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01795/0.4666, allocations: 6.183 MB / 413.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00113/0.4678, allocations: 431 kB / 414.3 MB, free: 1.648 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.4704, allocations: 0.85 MB / 415.2 MB, free: 1.258 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002914/0.4734, allocations: 1.029 MB / 416.2 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005418/0.474, allocations: 42.19 kB / 416.2 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008004/0.482, allocations: 1.212 MB / 417.5 MB, free: 452 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007418/0.4828, allocations: 284.2 kB / 417.7 MB, free: 232 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.4846, allocations: 0.6567 MB / 418.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006602/0.4912, allocations: 2.79 MB / 421.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.4913, allocations: 0 / 421.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.4913, allocations: 4 kB / 421.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001715/0.4915, allocations: 0 / 421.2 MB, free: 13.84 MB / 298.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.009613/0.5011, allocations: 3.384 MB / 424.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.566e-05/0.5012, allocations: 11.97 kB / 424.6 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000437/0.5016, allocations: 98.5 kB / 424.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009932/0.5026, allocations: 418.8 kB / 425.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007282/0.5099, allocations: 2.312 MB / 427.4 MB, free: 7.973 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.402e-05/0.5101, allocations: 44.94 kB / 427.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000239/0.5103, allocations: 51.98 kB / 427.5 MB, free: 7.879 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002444/0.5128, allocations: 0.7421 MB / 428.2 MB, free: 7.133 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.5128, allocations: 3.984 kB / 428.2 MB, free: 7.129 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.513, allocations: 20 kB / 428.3 MB, free: 7.109 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.244e-05/0.513, allocations: 19.98 kB / 428.3 MB, free: 7.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002942/0.516, allocations: 0.8631 MB / 429.1 MB, free: 6.223 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009393/0.5254, allocations: 3.118 MB / 432.3 MB, free: 3.023 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002326/0.5278, allocations: 0.6064 MB / 432.9 MB, free: 2.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05011/0.5779, allocations: 30.37 MB / 463.2 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001307/0.5793, allocations: 386.4 kB / 463.6 MB, free: 15.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.278e-06/0.5793, allocations: 0 / 463.6 MB, free: 15.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.004472/0.5838, allocations: 1.489 MB / 465.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.036e-05/0.5839, allocations: 67.39 kB / 465.2 MB, free: 13.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006753/0.5907, allocations: 3.068 MB / 468.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001894/0.591, allocations: 33.7 kB / 468.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001844/0.5928, allocations: 1.287 MB / 469.5 MB, free: 9.504 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003775/0.5932, allocations: 169.6 kB / 469.7 MB, free: 9.336 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.568e-05/0.5933, allocations: 20 kB / 469.7 MB, free: 9.316 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.5935, allocations: 342.8 kB / 470.1 MB, free: 8.973 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.5946, allocations: 273.8 kB / 470.3 MB, free: 8.707 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.596, allocations: 0.606 MB / 470.9 MB, free: 7.922 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.5973, allocations: 356.5 kB / 471.3 MB, free: 7.574 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.5974, allocations: 0 / 471.3 MB, free: 7.574 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003334/0.6007, allocations: 0.9446 MB / 472.2 MB, free: 6.621 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.08e-05/0.6008, allocations: 12 kB / 472.2 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001942/0.601, allocations: 83.98 kB / 472.3 MB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.703e-05/0.6011, allocations: 23.95 kB / 472.4 MB, free: 6.504 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.6025, allocations: 215.7 kB / 472.6 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-05/0.6026, allocations: 27.86 kB / 472.6 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/0.6047, allocations: 123 kB / 472.7 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002649/0.605, allocations: 64 kB / 472.8 MB, free: 6.086 MB / 346.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 () * Number of clocked 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.001535/0.6065, allocations: 449.5 kB / 473.2 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/0.6076, allocations: 403.1 kB / 473.6 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005661/0.6132, allocations: 1.282 MB / 474.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.6133, allocations: 4 kB / 474.9 MB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.6133, allocations: 3.953 kB / 474.9 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.6134, allocations: 7.984 kB / 474.9 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00668/0.62, allocations: 2.171 MB / 477.1 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001772/0.6203, allocations: 71.98 kB / 477.1 MB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/0.6217, allocations: 107.9 kB / 477.2 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-05/0.6218, allocations: 7.953 kB / 477.3 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002852/0.6221, allocations: 31.98 kB / 477.3 MB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.287e-06/0.6221, allocations: 0 / 477.3 MB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.528e-06/0.6222, allocations: 4 kB / 477.3 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008179/0.6304, allocations: 1.447 MB / 478.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002261/0.6327, allocations: 491.9 kB / 479.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001422/0.6342, allocations: 15.92 kB / 479.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00235/0.6366, allocations: 40.03 kB / 479.3 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003999/0.637, allocations: 59.94 kB / 479.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.6372, allocations: 43.98 kB / 479.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005629/0.6429, allocations: 1.976 MB / 481.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.363e-06/0.6429, allocations: 0 / 481.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002952/0.6459, allocations: 0.6012 MB / 482 MB, free: 12.75 MB / 362.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) * Number of clocked states: 0 () * 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.007105/0.6531, allocations: 2.748 MB / 484.7 MB, free: 9.961 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003138/0.6563, allocations: 0.8413 MB / 485.5 MB, free: 9.098 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/0.6563, allocations: 4 kB / 485.5 MB, free: 9.094 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.6578, allocations: 467.2 kB / 486 MB, free: 8.613 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003241/0.6611, allocations: 0.507 MB / 486.5 MB, free: 8.102 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07309/0.7342, allocations: 27.65 MB / 0.5021 GB, free: 10.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00203/0.7363, allocations: 1.777 MB / 0.5038 GB, free: 8.441 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002546/0.7389, allocations: 1.28 MB / 0.5051 GB, free: 7.16 MB / 394.7 MB Notification: Performance of SimCode: time 1.333e-06/0.7389, allocations: 0 / 0.5051 GB, free: 7.16 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.835/4.574, allocations: 50.41 MB / 0.5543 GB, free: 151 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