Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001198/0.001198, allocations: 99.94 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002946/0.0002948, allocations: 4 kB / 306.7 MB, free: 1.508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1134, allocations: 51.48 MB / 358.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01108/0.1246, allocations: 12.3 MB / 370.5 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2244/0.349, allocations: 17.93 MB / 388.4 MB, free: 5.016 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003667/0.3528, allocations: 29.97 kB / 388.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005611/0.3584, allocations: 1.012 MB / 389.5 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01182/0.3703, allocations: 2.124 MB / 391.6 MB, free: 3.215 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007245/0.3776, allocations: 1.191 MB / 392.8 MB, free: 2.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01267/0.3903, allocations: 6.288 MB / 399.1 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009466/0.3913, allocations: 421.9 kB / 399.5 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002193/0.3935, allocations: 0.9822 MB / 400.5 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001645/0.3952, allocations: 1.052 MB / 401.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001953/0.3954, allocations: 46.69 kB / 401.6 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005648/0.401, allocations: 1.434 MB / 403 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004212/0.4015, allocations: 277 kB / 403.3 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001448/0.4029, allocations: 0.6488 MB / 403.9 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004206/0.4071, allocations: 2.777 MB / 406.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.4072, allocations: 0 / 406.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4072, allocations: 0 / 406.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.865e-05/0.4073, allocations: 3.156 kB / 406.7 MB, free: 11.29 MB / 318.1 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.005944/0.4132, allocations: 3.37 MB / 410.1 MB, free: 8.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.4133, allocations: 8.031 kB / 410.1 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001915/0.4135, allocations: 102.5 kB / 410.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005153/0.414, allocations: 410.9 kB / 410.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004477/0.4185, allocations: 2.296 MB / 412.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.276e-05/0.4186, allocations: 40.95 kB / 412.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.4187, allocations: 59.89 kB / 413 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.4202, allocations: 0.7421 MB / 413.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.4202, allocations: 0 / 413.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.378e-05/0.4203, allocations: 23.98 kB / 413.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.749e-05/0.4203, allocations: 19.98 kB / 413.7 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.4219, allocations: 0.8553 MB / 414.6 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005812/0.4277, allocations: 3.11 MB / 417.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.429, allocations: 0.6181 MB / 418.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03206/0.4611, allocations: 30.92 MB / 449.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008134/0.462, allocations: 389.4 kB / 449.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.705e-06/0.462, allocations: 0 / 449.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002678/0.4647, allocations: 1.493 MB / 451.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.4648, allocations: 59.19 kB / 451.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004211/0.469, allocations: 3.047 MB / 454.2 MB, free: 7.617 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001436/0.4692, allocations: 37.7 kB / 454.3 MB, free: 7.574 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001522/0.4707, allocations: 1.572 MB / 455.8 MB, free: 5.992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002406/0.471, allocations: 173.7 kB / 456 MB, free: 5.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.471, allocations: 16 kB / 456 MB, free: 5.805 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4712, allocations: 342 kB / 456.4 MB, free: 5.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006267/0.4718, allocations: 265.8 kB / 456.6 MB, free: 5.207 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008155/0.4726, allocations: 0.6098 MB / 457.2 MB, free: 4.418 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006712/0.4733, allocations: 344.5 kB / 457.6 MB, free: 4.082 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.4733, allocations: 4 kB / 457.6 MB, free: 4.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002603/0.4759, allocations: 1.276 MB / 458.8 MB, free: 2.793 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.476, allocations: 16.22 kB / 458.9 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001171/0.4761, allocations: 83.98 kB / 458.9 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.218e-05/0.4761, allocations: 20 kB / 459 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007302/0.4769, allocations: 208.5 kB / 459.2 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.472e-05/0.4769, allocations: 31.81 kB / 459.2 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.4783, allocations: 127 kB / 459.3 MB, free: 2.316 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.4785, allocations: 60 kB / 459.4 MB, free: 2.258 MB / 366.1 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.0009897/0.4795, allocations: 458.7 kB / 459.8 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000588/0.4801, allocations: 395.1 kB / 460.2 MB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003347/0.4834, allocations: 1.266 MB / 461.5 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.4835, allocations: 4 kB / 461.5 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.4835, allocations: 0 / 461.5 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.4835, allocations: 9.5 kB / 461.5 MB, free: 120 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004052/0.4876, allocations: 2.186 MB / 463.7 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001048/0.4877, allocations: 71.98 kB / 463.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005146/0.4882, allocations: 99.92 kB / 463.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.754e-06/0.4882, allocations: 4 kB / 463.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.363e-05/0.4883, allocations: 39.94 kB / 463.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.4883, allocations: 4 kB / 463.9 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4883, allocations: 0 / 463.9 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002572/0.4909, allocations: 1.442 MB / 465.3 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/0.492, allocations: 484.2 kB / 465.8 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003737/0.4924, allocations: 12 kB / 465.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007015/0.4931, allocations: 40.83 kB / 465.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.4933, allocations: 59.94 kB / 465.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.937e-05/0.4933, allocations: 39.98 kB / 465.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002771/0.4961, allocations: 1.971 MB / 467.9 MB, free: 9.555 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4961, allocations: 0 / 467.9 MB, free: 9.555 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001862/0.498, allocations: 0.5972 MB / 468.5 MB, free: 8.957 MB / 382.1 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.003845/0.5019, allocations: 2.746 MB / 471.3 MB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001672/0.5036, allocations: 0.8454 MB / 472.1 MB, free: 5.305 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.5036, allocations: 0 / 472.1 MB, free: 5.305 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007447/0.5043, allocations: 467.1 kB / 472.6 MB, free: 4.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003023/0.5074, allocations: 0.6046 MB / 473.2 MB, free: 4.211 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04677/0.5542, allocations: 27.41 MB / 0.4888 GB, free: 6.621 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00183/0.5561, allocations: 1.773 MB / 0.4906 GB, free: 4.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001941/0.5581, allocations: 361.3 kB / 0.4909 GB, free: 4.461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001443/0.5596, allocations: 1.265 MB / 0.4922 GB, free: 3.195 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5596, allocations: 0 / 0.4922 GB, free: 3.195 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.295/0.8546, allocations: 58.08 MB / 0.5489 GB, free: 142.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/0.8548, allocations: 187.4 kB / 0.5491 GB, free: 142.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.753/4.608, allocations: 0 / 0.5491 GB, free: 142.2 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat