Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.001133/0.001133, allocations: 94.45 kB / 16.3 MB, free: 5.996 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.001593/0.001593, allocations: 179.7 kB / 17.2 MB, free: 5.914 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.566/1.566, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002905/0.0002906, allocations: 6.406 kB / 300.8 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1083, allocations: 50.43 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01047/0.1188, allocations: 11.8 MB / 363 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02063/0.1395, allocations: 17.82 MB / 380.8 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002206/0.1417, allocations: 31.81 kB / 380.9 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003531/0.1453, allocations: 1.003 MB / 381.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008628/0.1539, allocations: 2.064 MB / 383.9 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004785/0.1587, allocations: 1.188 MB / 385.1 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01202/0.1708, allocations: 6.135 MB / 391.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.1719, allocations: 420.5 kB / 391.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002035/0.1739, allocations: 0.9486 MB / 392.6 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00146/0.1754, allocations: 1.017 MB / 393.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.1756, allocations: 44 kB / 393.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004764/0.1803, allocations: 1.429 MB / 395.1 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004084/0.1808, allocations: 277.9 kB / 395.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001132/0.1819, allocations: 0.617 MB / 396 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003488/0.1854, allocations: 2.59 MB / 398.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1854, allocations: 0 / 398.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1855, allocations: 4 kB / 398.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.727e-05/0.1855, allocations: 4 kB / 398.6 MB, free: 12.05 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.005475/0.191, allocations: 3.248 MB / 401.8 MB, free: 8.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.878e-05/0.1911, allocations: 8.031 kB / 401.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002185/0.1913, allocations: 98.5 kB / 401.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005444/0.1919, allocations: 395.1 kB / 402.3 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003977/0.1958, allocations: 2.238 MB / 404.6 MB, free: 5.918 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.312e-05/0.1959, allocations: 48.92 kB / 404.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.1961, allocations: 59.84 kB / 404.7 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/0.1975, allocations: 0.746 MB / 405.4 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.1975, allocations: 4 kB / 405.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.002e-05/0.1976, allocations: 23.95 kB / 405.5 MB, free: 5.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.676e-05/0.1976, allocations: 19.98 kB / 405.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.1992, allocations: 0.8554 MB / 406.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005512/0.2047, allocations: 3.063 MB / 409.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.2059, allocations: 0.6181 MB / 410 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2608/0.4667, allocations: 30.27 MB / 440.3 MB, free: 30.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007815/0.4676, allocations: 378.6 kB / 440.6 MB, free: 30.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.966e-06/0.4676, allocations: 3.25 kB / 440.6 MB, free: 30.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002609/0.4702, allocations: 1.468 MB / 442.1 MB, free: 30.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.4702, allocations: 60.8 kB / 442.2 MB, free: 30.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003712/0.474, allocations: 2.901 MB / 445.1 MB, free: 29.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.082e-05/0.4741, allocations: 34.2 kB / 445.1 MB, free: 29.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001146/0.4752, allocations: 1.49 MB / 446.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001535/0.4754, allocations: 169.9 kB / 446.8 MB, free: 29.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.11e-05/0.4754, allocations: 12.38 kB / 446.8 MB, free: 29.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.094e-05/0.4755, allocations: 342.1 kB / 447.1 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005554/0.4761, allocations: 262.2 kB / 447.4 MB, free: 29.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006954/0.4768, allocations: 0.6198 MB / 448 MB, free: 28.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006/0.4774, allocations: 341.3 kB / 448.3 MB, free: 28.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.4774, allocations: 3.906 kB / 448.3 MB, free: 28.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001927/0.4793, allocations: 1.261 MB / 449.6 MB, free: 28.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.4794, allocations: 8.312 kB / 449.6 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001077/0.4795, allocations: 80.11 kB / 449.7 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/0.4795, allocations: 20.38 kB / 449.7 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006785/0.4802, allocations: 214.4 kB / 449.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-05/0.4802, allocations: 25.19 kB / 449.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009774/0.4812, allocations: 122.9 kB / 450 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.894e-05/0.4813, allocations: 64.56 kB / 450.1 MB, free: 28.57 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.0007569/0.4821, allocations: 433.1 kB / 450.5 MB, free: 28.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003393/0.4824, allocations: 382.3 kB / 450.9 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002783/0.4852, allocations: 1.259 MB / 452.2 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.4853, allocations: 2.938 kB / 452.2 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.4853, allocations: 2.938 kB / 452.2 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.4853, allocations: 5.531 kB / 452.2 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.4882, allocations: 2.119 MB / 454.3 MB, free: 27.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.351e-05/0.4883, allocations: 71.64 kB / 454.4 MB, free: 27.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004749/0.4888, allocations: 103.2 kB / 454.5 MB, free: 27.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.4888, allocations: 6.75 kB / 454.5 MB, free: 27.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-05/0.4889, allocations: 35.25 kB / 454.5 MB, free: 27.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.4889, allocations: 2.688 kB / 454.5 MB, free: 27.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4889, allocations: 0 / 454.5 MB, free: 27.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.4911, allocations: 1.409 MB / 455.9 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008964/0.4921, allocations: 471.9 kB / 456.4 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002872/0.4923, allocations: 15.25 kB / 456.4 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006899/0.493, allocations: 48.44 kB / 456.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.4932, allocations: 57.34 kB / 456.5 MB, free: 26.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.656e-05/0.4933, allocations: 45.62 kB / 456.5 MB, free: 26.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002303/0.4956, allocations: 1.869 MB / 458.4 MB, free: 26.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4956, allocations: 0 / 458.4 MB, free: 26.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001314/0.4969, allocations: 0.5885 MB / 459 MB, free: 26.26 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.002985/0.4999, allocations: 2.709 MB / 461.7 MB, free: 24.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.5014, allocations: 0.8537 MB / 462.6 MB, free: 23.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5015, allocations: 0 / 462.6 MB, free: 23.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000634/0.5021, allocations: 465.4 kB / 463 MB, free: 22.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.5043, allocations: 0.5867 MB / 463.6 MB, free: 22.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03377/0.5381, allocations: 26.33 MB / 489.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001334/0.5395, allocations: 1.723 MB / 491.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001406/0.5409, allocations: 357.1 kB / 492 MB, free: 10.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/0.542, allocations: 1.213 MB / 493.2 MB, free: 9.816 MB / 366.1 MB Notification: Performance of SimCode: time 1.183e-06/0.542, allocations: 0 / 493.2 MB, free: 9.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09294/0.6349, allocations: 55.99 MB / 0.5363 GB, free: 2.305 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/0.6352, allocations: 194.1 kB / 0.5365 GB, free: 2.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.397/4.033, allocations: 0 / 0.5365 GB, free: 2.059 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat