Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",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.001243/0.001243, allocations: 96.83 kB / 16.93 MB, free: 5.98 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.00122/0.00122, allocations: 181 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004684/0.0004686, allocations: 12 kB / 280.8 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1083, allocations: 47.57 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006265/0.1146, allocations: 6.22 MB / 334.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01853/0.1332, allocations: 15.76 MB / 350.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.1344, allocations: 35.69 kB / 350.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002205/0.1366, allocations: 0.7079 MB / 351.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005522/0.1421, allocations: 1.554 MB / 352.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003822/0.146, allocations: 1.083 MB / 353.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004968/0.151, allocations: 3.055 MB / 356.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003801/0.1514, allocations: 209.1 kB / 357 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005532/0.1519, allocations: 437.9 kB / 357.5 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005254/0.1525, allocations: 0.4971 MB / 358 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.601e-05/0.1525, allocations: 24 kB / 358 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003393/0.1559, allocations: 1.195 MB / 359.2 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.1561, allocations: 139 kB / 359.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002733/0.1564, allocations: 328.8 kB / 359.6 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001491/0.1579, allocations: 1.508 MB / 361.1 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1579, allocations: 4 kB / 361.1 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.1579, allocations: 4 kB / 361.2 MB, free: 3.148 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.1579, allocations: 0 / 361.2 MB, free: 3.148 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.002735/0.1607, allocations: 1.803 MB / 363 MB, free: 1.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.1607, allocations: 15.97 kB / 363 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.846e-05/0.1608, allocations: 70.53 kB / 363 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002168/0.161, allocations: 193.7 kB / 363.2 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001904/0.163, allocations: 1.289 MB / 364.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.163, allocations: 16.56 kB / 364.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.081e-05/0.1631, allocations: 28 kB / 364.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008683/0.1639, allocations: 449.2 kB / 365 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.164, allocations: 0 / 365 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.162e-05/0.164, allocations: 8 kB / 365 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.164, allocations: 15.98 kB / 365 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.1651, allocations: 0.502 MB / 365.5 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002495/0.1676, allocations: 1.643 MB / 367.2 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009015/0.1685, allocations: 423.2 kB / 367.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2055/0.374, allocations: 15.29 MB / 382.9 MB, free: 51.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007091/0.3747, allocations: 282.8 kB / 383.2 MB, free: 51.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.295e-06/0.3747, allocations: 1.344 kB / 383.2 MB, free: 51.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002337/0.3771, allocations: 0.9019 MB / 384.1 MB, free: 51.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.3771, allocations: 59.27 kB / 384.1 MB, free: 51.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002966/0.3801, allocations: 1.449 MB / 385.6 MB, free: 51.36 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.793e-05/0.3802, allocations: 36.98 kB / 385.6 MB, free: 51.33 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007539/0.381, allocations: 0.7199 MB / 386.3 MB, free: 50.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.3811, allocations: 101.2 kB / 386.4 MB, free: 50.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.798e-05/0.3811, allocations: 5.688 kB / 386.4 MB, free: 50.69 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.3812, allocations: 328.9 kB / 386.7 MB, free: 50.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005305/0.3818, allocations: 178.4 kB / 386.9 MB, free: 50.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005915/0.3824, allocations: 380.1 kB / 387.3 MB, free: 50.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000558/0.383, allocations: 223 kB / 387.5 MB, free: 49.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.383, allocations: 2.281 kB / 387.5 MB, free: 49.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001684/0.3847, allocations: 0.7948 MB / 388.3 MB, free: 49.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.957e-05/0.3847, allocations: 9.062 kB / 388.3 MB, free: 49.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.037e-05/0.3848, allocations: 39.84 kB / 388.3 MB, free: 49.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003843/0.3852, allocations: 133 kB / 388.5 MB, free: 49.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.3857, allocations: 118 kB / 388.6 MB, free: 49.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005578/0.3862, allocations: 0.6763 MB / 389.3 MB, free: 49.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006477/0.3869, allocations: 88.05 kB / 389.4 MB, free: 49.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.137e-05/0.387, allocations: 34.95 kB / 389.4 MB, free: 49.05 MB / 318.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.0004654/0.3874, allocations: 274.6 kB / 389.7 MB, free: 48.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.3877, allocations: 186.7 kB / 389.8 MB, free: 48.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002194/0.3899, allocations: 0.7988 MB / 390.6 MB, free: 48.51 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.3899, allocations: 6.453 kB / 390.6 MB, free: 48.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3899, allocations: 2.328 kB / 390.6 MB, free: 48.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.3899, allocations: 5.078 kB / 390.7 MB, free: 48.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002593/0.3925, allocations: 1.353 MB / 392 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.894e-05/0.3926, allocations: 41.73 kB / 392 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000272/0.3929, allocations: 57.78 kB / 392.1 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003029/0.3932, allocations: 121.2 kB / 392.2 MB, free: 47.8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-05/0.3933, allocations: 22.5 kB / 392.2 MB, free: 47.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005829/0.3939, allocations: 0.6685 MB / 392.9 MB, free: 47.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.3939, allocations: 1.766 kB / 392.9 MB, free: 47.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.3954, allocations: 0.7846 MB / 393.7 MB, free: 46.81 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004228/0.3958, allocations: 280.4 kB / 394 MB, free: 46.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.396, allocations: 8.672 kB / 394 MB, free: 46.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004114/0.3964, allocations: 39.83 kB / 394 MB, free: 46.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3965, allocations: 42 kB / 394.1 MB, free: 46.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.221e-05/0.3966, allocations: 26.89 kB / 394.1 MB, free: 46.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001245/0.3978, allocations: 0.9517 MB / 395 MB, free: 46.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3978, allocations: 0 / 395 MB, free: 46.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001031/0.3988, allocations: 328.6 kB / 395.4 MB, free: 46.16 MB / 318.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.002567/0.4014, allocations: 1.911 MB / 397.3 MB, free: 45.06 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.4028, allocations: 0.5641 MB / 397.8 MB, free: 44.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.4028, allocations: 0 / 397.8 MB, free: 44.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005596/0.4033, allocations: 307.9 kB / 398.1 MB, free: 44.67 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007999/0.4041, allocations: 253 kB / 398.4 MB, free: 44.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01488/0.419, allocations: 12.45 MB / 410.8 MB, free: 32.53 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004805/0.4196, allocations: 1.184 MB / 412 MB, free: 31.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007633/0.4203, allocations: 201.7 kB / 412.2 MB, free: 31.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006799/0.421, allocations: 0.5579 MB / 412.8 MB, free: 30.56 MB / 318.1 MB Notification: Performance of SimCode: time 1.403e-06/0.421, allocations: 2.188 kB / 412.8 MB, free: 30.56 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05357/0.4746, allocations: 32.44 MB / 445.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/0.4749, allocations: 204.8 kB / 445.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.539/3.014, allocations: 0 / 445.4 MB, free: 13.85 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat