Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 93.88 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 183.5 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003897/0.0003899, allocations: 6.312 kB / 300.8 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1573, allocations: 50.42 MB / 351.2 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01527/0.1726, allocations: 12.3 MB / 363.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02574/0.1984, allocations: 17.88 MB / 381.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002742/0.2012, allocations: 27.81 kB / 381.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003744/0.205, allocations: 1.011 MB / 382.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00902/0.214, allocations: 2.13 MB / 384.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004799/0.2188, allocations: 1.184 MB / 385.8 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01228/0.2311, allocations: 6.255 MB / 392 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001283/0.2325, allocations: 440.9 kB / 392.4 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002161/0.2346, allocations: 0.9797 MB / 393.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002132/0.2368, allocations: 1.048 MB / 394.5 MB, free: 208 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000235/0.237, allocations: 40 kB / 394.5 MB, free: 168 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005499/0.2425, allocations: 1.433 MB / 395.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005731/0.2431, allocations: 285.8 kB / 396.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001265/0.2444, allocations: 0.652 MB / 396.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004292/0.2487, allocations: 2.765 MB / 399.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2488, allocations: 7.938 kB / 399.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.2488, allocations: 0 / 399.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001376/0.2489, allocations: 0 / 399.6 MB, free: 11.01 MB / 334.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.007437/0.2564, allocations: 3.373 MB / 403 MB, free: 7.559 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.2564, allocations: 8.031 kB / 403 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002162/0.2567, allocations: 98.5 kB / 403.1 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007564/0.2574, allocations: 410.9 kB / 403.5 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005039/0.2625, allocations: 2.292 MB / 405.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.273e-05/0.2625, allocations: 40.98 kB / 405.9 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.2627, allocations: 48 kB / 405.9 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.2642, allocations: 0.746 MB / 406.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.2642, allocations: 0 / 406.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.333e-05/0.2643, allocations: 23.95 kB / 406.7 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/0.2643, allocations: 19.98 kB / 406.7 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.2659, allocations: 0.8554 MB / 407.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005934/0.2719, allocations: 3.11 MB / 410.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.2732, allocations: 0.6259 MB / 411.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2127/0.4859, allocations: 30.28 MB / 441.6 MB, free: 54.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007501/0.4867, allocations: 390.1 kB / 441.9 MB, free: 54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.4867, allocations: 3.844 kB / 441.9 MB, free: 54 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002221/0.4889, allocations: 1.487 MB / 443.4 MB, free: 53.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.489, allocations: 60.94 kB / 443.5 MB, free: 53.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003312/0.4923, allocations: 3.047 MB / 446.5 MB, free: 52.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.739e-05/0.4924, allocations: 36.39 kB / 446.6 MB, free: 52.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001107/0.4935, allocations: 1.573 MB / 448.1 MB, free: 51.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.4937, allocations: 174.7 kB / 448.3 MB, free: 51.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.73e-05/0.4937, allocations: 12 kB / 448.3 MB, free: 51.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.645e-05/0.4938, allocations: 341.8 kB / 448.7 MB, free: 51.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005193/0.4943, allocations: 266.4 kB / 448.9 MB, free: 51.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006062/0.4949, allocations: 0.6139 MB / 449.5 MB, free: 50.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005671/0.4955, allocations: 345 kB / 449.9 MB, free: 50.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/0.4955, allocations: 3.906 kB / 449.9 MB, free: 50.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001816/0.4973, allocations: 1.28 MB / 451.2 MB, free: 50.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.4974, allocations: 11.8 kB / 451.2 MB, free: 50.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.292e-05/0.4975, allocations: 82.73 kB / 451.2 MB, free: 50.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.4975, allocations: 19.22 kB / 451.3 MB, free: 50.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/0.4981, allocations: 212.2 kB / 451.5 MB, free: 49.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/0.4982, allocations: 27.61 kB / 451.5 MB, free: 49.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009475/0.4991, allocations: 112.8 kB / 451.6 MB, free: 49.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.352e-05/0.4992, allocations: 65.5 kB / 451.7 MB, free: 49.88 MB / 350.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.0006969/0.4999, allocations: 456 kB / 452.1 MB, free: 49.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003213/0.5003, allocations: 402 kB / 452.5 MB, free: 49.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002718/0.503, allocations: 1.275 MB / 453.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.503, allocations: 3.688 kB / 453.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.503, allocations: 0 / 453.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.503, allocations: 3.984 kB / 453.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002811/0.5058, allocations: 2.176 MB / 456 MB, free: 47.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.132e-05/0.5059, allocations: 69.48 kB / 456 MB, free: 47.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004582/0.5064, allocations: 105.1 kB / 456.1 MB, free: 47.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.5064, allocations: 3.125 kB / 456.1 MB, free: 47.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.179e-05/0.5065, allocations: 32.66 kB / 456.2 MB, free: 47.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.5065, allocations: 2.984 kB / 456.2 MB, free: 47.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.5065, allocations: 1.625 kB / 456.2 MB, free: 47.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.5084, allocations: 1.448 MB / 457.6 MB, free: 46.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006168/0.509, allocations: 488 kB / 458.1 MB, free: 45.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.5093, allocations: 12 kB / 458.1 MB, free: 45.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007163/0.51, allocations: 39.95 kB / 458.2 MB, free: 45.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.5101, allocations: 55.94 kB / 458.2 MB, free: 45.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-05/0.5102, allocations: 40.06 kB / 458.3 MB, free: 45.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002166/0.5124, allocations: 1.975 MB / 460.2 MB, free: 43.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5124, allocations: 2.078 kB / 460.2 MB, free: 43.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001315/0.5137, allocations: 0.5933 MB / 460.8 MB, free: 42.93 MB / 350.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.00299/0.5167, allocations: 2.737 MB / 463.6 MB, free: 40.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.5182, allocations: 0.8493 MB / 464.4 MB, free: 39.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.5182, allocations: 128 / 464.4 MB, free: 39.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006139/0.5188, allocations: 471 kB / 464.9 MB, free: 38.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002195/0.521, allocations: 0.6169 MB / 465.5 MB, free: 38.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03343/0.5545, allocations: 27.4 MB / 492.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007455/0.5552, allocations: 1.78 MB / 494.7 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0012/0.5564, allocations: 365.3 kB / 495 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008751/0.5573, allocations: 1.261 MB / 496.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5573, allocations: 0 / 496.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1132/0.6705, allocations: 58.04 MB / 0.5413 GB, free: 11.71 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001785/0.6707, allocations: 192.4 kB / 0.5415 GB, free: 11.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.472/4.143, allocations: 7.938 kB / 0.5415 GB, free: 11.46 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat