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.0009359/0.0009361, allocations: 100.1 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001104/0.001104, allocations: 191.1 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000234/0.0002341, allocations: 4 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1159, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01346/0.1294, allocations: 13.57 MB / 371.9 MB, free: 168 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2497/0.3792, allocations: 18.98 MB / 390.8 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002985/0.3822, allocations: 33.81 kB / 390.9 MB, free: 3.172 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004404/0.3866, allocations: 0.9776 MB / 391.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.3975, allocations: 1.885 MB / 393.7 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006284/0.4038, allocations: 1.11 MB / 394.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01227/0.4161, allocations: 6.257 MB / 401.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00124/0.4174, allocations: 433.2 kB / 401.5 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002488/0.4199, allocations: 0.9839 MB / 402.5 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002387/0.4223, allocations: 1.051 MB / 403.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000262/0.4226, allocations: 41.97 kB / 403.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005834/0.4284, allocations: 1.338 MB / 404.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005869/0.429, allocations: 284.8 kB / 405.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.4308, allocations: 0.6494 MB / 405.9 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004184/0.435, allocations: 2.869 MB / 408.7 MB, free: 9.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.435, allocations: 0 / 408.7 MB, free: 9.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.435, allocations: 0 / 408.7 MB, free: 9.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.078e-05/0.4351, allocations: 0 / 408.7 MB, free: 9.973 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.005222/0.4404, allocations: 3.379 MB / 412.1 MB, free: 6.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.4404, allocations: 8.031 kB / 412.1 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001448/0.4406, allocations: 98.5 kB / 412.2 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004494/0.441, allocations: 415 kB / 412.6 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003466/0.4445, allocations: 2.311 MB / 414.9 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.4446, allocations: 44.94 kB / 415 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.4447, allocations: 55.91 kB / 415 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.446, allocations: 0.746 MB / 415.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.446, allocations: 0 / 415.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.638e-05/0.4461, allocations: 20 kB / 415.8 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/0.4462, allocations: 23.98 kB / 415.8 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.4476, allocations: 0.8554 MB / 416.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004887/0.4525, allocations: 3.126 MB / 419.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.4536, allocations: 0.6142 MB / 420.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009395/0.4546, allocations: 0.672 MB / 421.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02868/0.4833, allocations: 30.79 MB / 451.9 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007688/0.4841, allocations: 381.5 kB / 452.3 MB, free: 9.965 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.507e-06/0.4841, allocations: 0 / 452.3 MB, free: 9.965 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002397/0.4865, allocations: 1.182 MB / 453.4 MB, free: 8.773 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.4866, allocations: 63.17 kB / 453.5 MB, free: 8.699 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003713/0.4903, allocations: 3.044 MB / 456.5 MB, free: 5.656 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.599e-05/0.4904, allocations: 33.7 kB / 456.6 MB, free: 5.617 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001362/0.4917, allocations: 1.576 MB / 458.1 MB, free: 4.031 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.4919, allocations: 165.7 kB / 458.3 MB, free: 3.867 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.492, allocations: 20 kB / 458.3 MB, free: 3.848 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.4921, allocations: 337.9 kB / 458.7 MB, free: 3.512 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005406/0.4926, allocations: 265.8 kB / 458.9 MB, free: 3.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007657/0.4934, allocations: 0.6138 MB / 459.5 MB, free: 2.461 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006661/0.4941, allocations: 348.5 kB / 459.9 MB, free: 2.121 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.4941, allocations: 0 / 459.9 MB, free: 2.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002348/0.4965, allocations: 1.286 MB / 461.2 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.4965, allocations: 12 kB / 461.2 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/0.4966, allocations: 83.98 kB / 461.3 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.583e-05/0.4967, allocations: 20 kB / 461.3 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007092/0.4974, allocations: 215.7 kB / 461.5 MB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.809e-05/0.4974, allocations: 27.86 kB / 461.5 MB, free: 484 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.4988, allocations: 115 kB / 461.6 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.4989, allocations: 68 kB / 461.7 MB, free: 300 kB / 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.0008443/0.4997, allocations: 458.1 kB / 462.1 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003691/0.5001, allocations: 399.1 kB / 462.5 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003052/0.5032, allocations: 1.251 MB / 463.8 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.5032, allocations: 8 kB / 463.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.5032, allocations: 3.953 kB / 463.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.5032, allocations: 3.984 kB / 463.8 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003817/0.5071, allocations: 2.178 MB / 466 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.572e-05/0.5072, allocations: 68 kB / 466 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004485/0.5076, allocations: 107.9 kB / 466.1 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.408e-06/0.5076, allocations: 3.953 kB / 466.1 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.485e-05/0.5077, allocations: 39.92 kB / 466.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.5077, allocations: 3.688 kB / 466.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5077, allocations: 3.938 kB / 466.2 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002176/0.5099, allocations: 1.387 MB / 467.6 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007765/0.5107, allocations: 499.9 kB / 468.1 MB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002824/0.511, allocations: 19.94 kB / 468.1 MB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006286/0.5116, allocations: 35.97 kB / 468.1 MB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.5118, allocations: 64 kB / 468.2 MB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.463e-05/0.5119, allocations: 39.98 kB / 468.2 MB, free: 9.621 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002452/0.5143, allocations: 1.967 MB / 470.2 MB, free: 7.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5143, allocations: 0 / 470.2 MB, free: 7.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001448/0.5158, allocations: 0.5934 MB / 470.8 MB, free: 7.066 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.003364/0.5192, allocations: 2.58 MB / 473.4 MB, free: 4.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.5207, allocations: 0.8493 MB / 474.2 MB, free: 3.578 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5208, allocations: 0 / 474.2 MB, free: 3.578 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007209/0.5215, allocations: 467.2 kB / 474.7 MB, free: 3.098 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002856/0.5244, allocations: 0.62 MB / 475.3 MB, free: 2.473 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.041/0.5654, allocations: 19.37 MB / 494.7 MB, free: 13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/0.5666, allocations: 1.71 MB / 496.4 MB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001577/0.5682, allocations: 357.3 kB / 496.7 MB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/0.5696, allocations: 1.261 MB / 498 MB, free: 9.648 MB / 414.1 MB Notification: Performance of SimCode: time 1.774e-06/0.5696, allocations: 4 kB / 498 MB, free: 9.645 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.342/0.9116, allocations: 58.77 MB / 0.5437 GB, free: 139 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001799/0.9118, allocations: 204.6 kB / 0.5439 GB, free: 138.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.795/4.707, allocations: 0 / 0.5439 GB, free: 138.8 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