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.001193/0.001193, allocations: 104 kB / 17.58 MB, free: 5.418 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.001256/0.001256, allocations: 192.2 kB / 18.51 MB, free: 4.504 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.344/1.344, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001212/0.001212, allocations: 48.14 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09847/0.09969, allocations: 46.62 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006866/0.1066, allocations: 5.019 MB / 332.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.118, allocations: 10.44 MB / 342.8 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006999/0.1188, allocations: 12 kB / 342.8 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001791/0.1206, allocations: 0.6711 MB / 343.5 MB, free: 4.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003361/0.124, allocations: 0.9906 MB / 344.5 MB, free: 3.176 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.1257, allocations: 0.5998 MB / 345.1 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002278/0.128, allocations: 1.338 MB / 346.4 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002884/0.1283, allocations: 177.1 kB / 346.6 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000269/0.1286, allocations: 266.6 kB / 346.9 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003064/0.1289, allocations: 322 kB / 347.2 MB, free: 480 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.747e-05/0.129, allocations: 32 kB / 347.2 MB, free: 448 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001373/0.1304, allocations: 0.6753 MB / 347.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.737e-05/0.1305, allocations: 115.2 kB / 348 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003428/0.1308, allocations: 401.4 kB / 348.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001435/0.1323, allocations: 1.25 MB / 349.7 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1323, allocations: 0 / 349.7 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1323, allocations: 0 / 349.7 MB, free: 14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.1323, allocations: 0 / 349.7 MB, free: 14 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001838/0.1342, allocations: 1.326 MB / 351 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1342, allocations: 8.031 kB / 351 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.693e-05/0.1343, allocations: 66.72 kB / 351.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.1344, allocations: 115.6 kB / 351.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009264/0.1354, allocations: 0.7503 MB / 351.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.1354, allocations: 20.5 kB / 351.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.764e-05/0.1355, allocations: 31.91 kB / 352 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006021/0.1361, allocations: 313.3 kB / 352.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1361, allocations: 0 / 352.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.1361, allocations: 12 kB / 352.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.1361, allocations: 11.98 kB / 352.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006205/0.1368, allocations: 278.2 kB / 352.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.1387, allocations: 1.365 MB / 353.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007108/0.1394, allocations: 306.5 kB / 354.2 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004297/0.1398, allocations: 240.6 kB / 354.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004405/0.1443, allocations: 3.604 MB / 358.1 MB, free: 4.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004271/0.1447, allocations: 199.2 kB / 358.3 MB, free: 4.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.474e-06/0.1447, allocations: 0 / 358.3 MB, free: 4.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001627/0.1464, allocations: 0.7264 MB / 359 MB, free: 3.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.1464, allocations: 63.34 kB / 359.1 MB, free: 3.746 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009482/0.1474, allocations: 0.8153 MB / 359.9 MB, free: 2.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/0.1474, allocations: 33.7 kB / 359.9 MB, free: 2.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003549/0.1478, allocations: 448.5 kB / 360.3 MB, free: 2.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.555e-05/0.1479, allocations: 98.64 kB / 360.4 MB, free: 2.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.148, allocations: 73.94 kB / 360.5 MB, free: 2.254 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1481, allocations: 321.9 kB / 360.8 MB, free: 1.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.1484, allocations: 116.7 kB / 360.9 MB, free: 1.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003494/0.1488, allocations: 224.1 kB / 361.2 MB, free: 1.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006175/0.1494, allocations: 352.9 kB / 361.5 MB, free: 1.164 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1494, allocations: 0 / 361.5 MB, free: 1.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009186/0.1503, allocations: 0.5251 MB / 362 MB, free: 0.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.1504, allocations: 11.98 kB / 362 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.973e-05/0.1504, allocations: 32 kB / 362.1 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/0.1506, allocations: 53.69 kB / 362.1 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000313/0.151, allocations: 75.73 kB / 362.2 MB, free: 460 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/0.153, allocations: 2.852 MB / 365 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.1534, allocations: 47.64 kB / 365.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.1534, allocations: 20 kB / 365.1 MB, free: 13.25 MB / 318.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 (VIN.counter,$PRE.VIN.counter,VIN.counter2,$PRE.VIN.counter2,VIN.T0,$PRE.VIN.T0,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000278/0.1537, allocations: 201.7 kB / 365.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.1538, allocations: 102.8 kB / 365.4 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001065/0.1549, allocations: 493.9 kB / 365.9 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.1549, allocations: 11.98 kB / 365.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.1549, allocations: 0 / 365.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.1549, allocations: 0 / 365.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005776/0.1555, allocations: 0.5621 MB / 366.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.068e-05/0.1556, allocations: 31.98 kB / 366.5 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002436/0.1558, allocations: 39.91 kB / 366.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001429/0.156, allocations: 53.62 kB / 366.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.156, allocations: 11.98 kB / 366.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001918/0.1579, allocations: 2.844 MB / 369.4 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1579, allocations: 0 / 369.4 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.1592, allocations: 0.6151 MB / 370.1 MB, free: 7.918 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.1594, allocations: 179.8 kB / 370.2 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.402e-05/0.1594, allocations: 0 / 370.2 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.1597, allocations: 15.98 kB / 370.2 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.576e-05/0.1598, allocations: 31.91 kB / 370.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.239e-05/0.1598, allocations: 15.98 kB / 370.3 MB, free: 7.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006179/0.1604, allocations: 0.5428 MB / 370.8 MB, free: 7.109 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1604, allocations: 4.062 kB / 370.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006574/0.1611, allocations: 247.6 kB / 371.1 MB, free: 6.863 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001934/0.163, allocations: 1.383 MB / 372.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.1642, allocations: 0.6007 MB / 373.1 MB, free: 4.812 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1642, allocations: 0 / 373.1 MB, free: 4.812 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005823/0.1648, allocations: 427.6 kB / 373.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004555/0.1652, allocations: 108.2 kB / 373.6 MB, free: 4.254 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1432/0.3085, allocations: 6.142 MB / 379.7 MB, free: 52.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005257/0.3091, allocations: 0.9571 MB / 380.7 MB, free: 51.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003017/0.3094, allocations: 83.41 kB / 380.8 MB, free: 51.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002866/0.3097, allocations: 328.3 kB / 381.1 MB, free: 51.97 MB / 318.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3097, allocations: 1.094 kB / 381.1 MB, free: 51.97 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04134/0.351, allocations: 17.24 MB / 398.3 MB, free: 44.12 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.502/9.853, allocations: 12.5 kB / 398.4 MB, free: 44.11 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/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)