Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.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.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",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.001078/0.001078, allocations: 96.58 kB / 16.93 MB, free: 5.984 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.001144/0.001145, allocations: 180 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.351/1.351, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004356/0.0004356, allocations: 12 kB / 280.8 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08882/0.08927, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.004317/0.09362, allocations: 4.089 MB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.1043, allocations: 9.059 MB / 341.6 MB, free: 6.805 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008325/0.1052, allocations: 11.94 kB / 341.6 MB, free: 6.793 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001719/0.1069, allocations: 0.5912 MB / 342.2 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003003/0.1099, allocations: 0.845 MB / 343 MB, free: 5.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00143/0.1114, allocations: 415.3 kB / 343.4 MB, free: 4.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00215/0.1135, allocations: 1.252 MB / 344.7 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002699/0.1138, allocations: 151.8 kB / 344.8 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.1141, allocations: 234.8 kB / 345.1 MB, free: 3.301 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002807/0.1144, allocations: 282.2 kB / 345.3 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.264e-05/0.1144, allocations: 24 kB / 345.4 MB, free: 3 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001354/0.1158, allocations: 0.6557 MB / 346 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.512e-05/0.1159, allocations: 91.36 kB / 346.1 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001403/0.116, allocations: 189.2 kB / 346.3 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000842/0.1169, allocations: 0.8845 MB / 347.2 MB, free: 1.176 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1169, allocations: 0 / 347.2 MB, free: 1.176 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1169, allocations: 0 / 347.2 MB, free: 1.176 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.1169, allocations: 0 / 347.2 MB, free: 1.176 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001785/0.1187, allocations: 1.199 MB / 348.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.1187, allocations: 8.031 kB / 348.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.498e-05/0.1188, allocations: 74.41 kB / 348.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.119, allocations: 118.5 kB / 348.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009168/0.1199, allocations: 0.6962 MB / 349.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.1199, allocations: 20.56 kB / 349.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.117e-05/0.12, allocations: 27.94 kB / 349.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005979/0.1206, allocations: 325.3 kB / 349.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.1206, allocations: 0 / 349.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.1206, allocations: 12 kB / 349.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.1206, allocations: 11.98 kB / 349.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006098/0.1213, allocations: 294.1 kB / 349.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001839/0.1231, allocations: 1.38 MB / 351.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006509/0.1238, allocations: 318.9 kB / 351.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004023/0.1278, allocations: 3.623 MB / 355.2 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004033/0.1282, allocations: 192.4 kB / 355.4 MB, free: 8.125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.304e-06/0.1283, allocations: 4 kB / 355.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001535/0.1298, allocations: 0.845 MB / 356.3 MB, free: 7.207 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.1298, allocations: 55.41 kB / 356.3 MB, free: 7.141 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008476/0.1307, allocations: 0.8036 MB / 357.1 MB, free: 6.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.1307, allocations: 33.7 kB / 357.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003291/0.1311, allocations: 444.5 kB / 357.6 MB, free: 5.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.973e-05/0.1312, allocations: 98.62 kB / 357.7 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.995e-05/0.1312, allocations: 12 kB / 357.7 MB, free: 5.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.1313, allocations: 322 kB / 358 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002675/0.1316, allocations: 120.7 kB / 358.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003393/0.1319, allocations: 236 kB / 358.4 MB, free: 5.016 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.1322, allocations: 151.9 kB / 358.5 MB, free: 4.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1322, allocations: 4 kB / 358.5 MB, free: 4.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009049/0.1331, allocations: 0.5366 MB / 359.1 MB, free: 4.312 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1332, allocations: 8 kB / 359.1 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.5e-05/0.1332, allocations: 32 kB / 359.1 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001951/0.1334, allocations: 54.03 kB / 359.2 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003029/0.1337, allocations: 87.88 kB / 359.2 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/0.1359, allocations: 2.655 MB / 361.9 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003644/0.1362, allocations: 55.64 kB / 362 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.432e-05/0.1363, allocations: 23.94 kB / 362 MB, free: 1.125 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.VIN.counter,VIN.counter,$whenCondition1,$PRE.VIN.T0,VIN.T0,$PRE.VIN.counter2,VIN.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003083/0.1366, allocations: 201.7 kB / 362.2 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.1367, allocations: 106.8 kB / 362.3 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.1378, allocations: 0.5125 MB / 362.8 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1379, allocations: 4 kB / 362.8 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.1379, allocations: 4 kB / 362.8 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1379, allocations: 0 / 362.8 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006014/0.1385, allocations: 0.5545 MB / 363.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-05/0.1385, allocations: 28 kB / 363.4 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.1388, allocations: 51.84 kB / 363.4 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001474/0.139, allocations: 53.69 kB / 363.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.139, allocations: 12 kB / 363.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001791/0.1408, allocations: 2.651 MB / 366.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1408, allocations: 0 / 366.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.142, allocations: 0.6318 MB / 366.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00024/0.1422, allocations: 187.7 kB / 367 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.9e-05/0.1423, allocations: 11.98 kB / 367 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.1426, allocations: 24.05 kB / 367 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.106e-05/0.1427, allocations: 23.92 kB / 367 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-05/0.1427, allocations: 23.92 kB / 367 MB, free: 11.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006104/0.1433, allocations: 0.535 MB / 367.6 MB, free: 11.13 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1433, allocations: 0 / 367.6 MB, free: 11.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000622/0.1439, allocations: 239.7 kB / 367.8 MB, free: 10.89 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * Number of discrete variables: 4 ($whenCondition1,VIN.T0,VIN.counter,VIN.counter2) * Number of discrete states: 2 (VIN.counter,VIN.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001826/0.1458, allocations: 1.406 MB / 369.2 MB, free: 9.449 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.1468, allocations: 0.6125 MB / 369.8 MB, free: 8.805 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1468, allocations: 0 / 369.8 MB, free: 8.805 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005585/0.1474, allocations: 443.3 kB / 370.3 MB, free: 8.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.1478, allocations: 100.3 kB / 370.4 MB, free: 8.238 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008958/0.1567, allocations: 6.895 MB / 377.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005291/0.1573, allocations: 0.9717 MB / 378.2 MB, free: 72 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.1382/0.2955, allocations: 77.17 kB / 378.3 MB, free: 52.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00046/0.296, allocations: 329.9 kB / 378.6 MB, free: 52.82 MB / 318.1 MB Notification: Performance of SimCode: time 6.52e-07/0.296, allocations: 0 / 378.6 MB, free: 52.82 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03371/0.3297, allocations: 16.16 MB / 394.8 MB, free: 47.18 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/0.3299, allocations: 220.1 kB / 395 MB, free: 46.94 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.116/2.446, allocations: 7.875 kB / 395 MB, free: 46.93 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1) Environment - environmentSimulation: