Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001056/0.001056, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 192.9 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246 MB, free: 10.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002817/0.0002817, allocations: 4 kB / 306.8 MB, free: 1.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1085, allocations: 51.49 MB / 358.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007155/0.1157, allocations: 7.068 MB / 365.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.22/0.3358, allocations: 17.69 MB / 383.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.337, allocations: 31.25 kB / 383.1 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002516/0.3395, allocations: 0.7071 MB / 383.8 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006201/0.3458, allocations: 1.417 MB / 385.2 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004952/0.3507, allocations: 1.041 MB / 386.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007261/0.358, allocations: 3.083 MB / 389.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000516/0.3586, allocations: 212.8 kB / 389.6 MB, free: 5.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009812/0.3596, allocations: 0.4885 MB / 390 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006965/0.3603, allocations: 0.5145 MB / 390.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.3604, allocations: 22.59 kB / 390.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004713/0.3651, allocations: 1.31 MB / 391.9 MB, free: 5.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002751/0.3654, allocations: 143.7 kB / 392 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006426/0.3661, allocations: 325 kB / 392.3 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002265/0.3683, allocations: 1.566 MB / 393.9 MB, free: 4.363 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3684, allocations: 0 / 393.9 MB, free: 4.363 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3684, allocations: 0 / 393.9 MB, free: 4.363 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.411e-05/0.3684, allocations: 1.125 kB / 393.9 MB, free: 4.363 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003275/0.3717, allocations: 1.806 MB / 395.7 MB, free: 3.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.3718, allocations: 9.531 kB / 395.7 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001179/0.3719, allocations: 72.91 kB / 395.8 MB, free: 3.074 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002873/0.3722, allocations: 192.1 kB / 396 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002104/0.3743, allocations: 1.283 MB / 397.3 MB, free: 1.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.3744, allocations: 19.56 kB / 397.3 MB, free: 1.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.723e-05/0.3744, allocations: 25.88 kB / 397.3 MB, free: 1.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009304/0.3754, allocations: 454.2 kB / 397.8 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.3754, allocations: 3.984 kB / 397.8 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.204e-05/0.3754, allocations: 13.73 kB / 397.8 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.3755, allocations: 15.92 kB / 397.8 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.3765, allocations: 0.5048 MB / 398.3 MB, free: 1.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002986/0.3795, allocations: 1.631 MB / 399.9 MB, free: 328 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000912/0.3805, allocations: 424.6 kB / 400.3 MB, free: 108 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007203/0.3812, allocations: 433.6 kB / 400.8 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01565/0.3969, allocations: 15.53 MB / 416.3 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006711/0.3976, allocations: 284.2 kB / 416.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.935e-06/0.3976, allocations: 3.938 kB / 416.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002382/0.4, allocations: 0.9111 MB / 417.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.3e-05/0.4001, allocations: 67.33 kB / 417.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002048/0.4021, allocations: 1.436 MB / 419 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.023e-05/0.4022, allocations: 33.69 kB / 419 MB, free: 13.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006591/0.4029, allocations: 0.7148 MB / 419.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.403, allocations: 98.72 kB / 419.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.403, allocations: 8 kB / 419.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.4032, allocations: 325.9 kB / 420.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004639/0.4036, allocations: 185 kB / 420.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005957/0.4043, allocations: 379.4 kB / 420.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004988/0.4048, allocations: 224.6 kB / 420.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.4048, allocations: 0 / 420.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001686/0.4065, allocations: 0.7861 MB / 421.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.4065, allocations: 11.98 kB / 421.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.058e-05/0.4066, allocations: 40 kB / 421.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003672/0.407, allocations: 133.4 kB / 421.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004373/0.4074, allocations: 119.8 kB / 422 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007413/0.4082, allocations: 0.6851 MB / 422.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009997/0.4092, allocations: 83.34 kB / 422.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.803e-05/0.4093, allocations: 36 kB / 422.8 MB, free: 9.344 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000661/0.4099, allocations: 281.2 kB / 423.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002929/0.4102, allocations: 181.8 kB / 423.3 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002049/0.4123, allocations: 0.7948 MB / 424.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.4123, allocations: 0 / 424.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4123, allocations: 0 / 424.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.4124, allocations: 4 kB / 424.1 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.415, allocations: 1.343 MB / 425.4 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-05/0.4151, allocations: 41.11 kB / 425.5 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002777/0.4154, allocations: 55.89 kB / 425.5 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002536/0.4157, allocations: 120.9 kB / 425.6 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.191e-05/0.4157, allocations: 19.98 kB / 425.6 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006036/0.4163, allocations: 0.6733 MB / 426.3 MB, free: 5.727 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4164, allocations: 3.953 kB / 426.3 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.4179, allocations: 0.7494 MB / 427.1 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006657/0.4186, allocations: 278.7 kB / 427.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002188/0.4189, allocations: 19.88 kB / 427.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004497/0.4193, allocations: 35.97 kB / 427.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.4194, allocations: 43.94 kB / 427.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.443e-05/0.4195, allocations: 24 kB / 427.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001323/0.4208, allocations: 0.9376 MB / 428.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.422e-06/0.4208, allocations: 0 / 428.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001279/0.4221, allocations: 327.8 kB / 428.7 MB, free: 3.258 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002684/0.4248, allocations: 1.748 MB / 430.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.4263, allocations: 0.5551 MB / 431 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.4263, allocations: 0 / 431 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000658/0.427, allocations: 307.5 kB / 431.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001812/0.4288, allocations: 309.3 kB / 431.6 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/0.4483, allocations: 8.127 MB / 439.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006471/0.449, allocations: 1.145 MB / 440.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008429/0.4498, allocations: 207.9 kB / 441.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006503/0.4505, allocations: 0.5579 MB / 441.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4505, allocations: 0 / 441.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05801/0.5085, allocations: 32.83 MB / 474.5 MB, free: 4.922 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002087/0.5088, allocations: 201.6 kB / 474.7 MB, free: 4.688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.86/3.369, allocations: 0 / 474.7 MB, free: 4.688 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat