Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_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.001002/0.001002, allocations: 108.1 kB / 16.62 MB, free: 6.809 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.001105/0.001105, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.245/1.245, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 51.08 kB / 300.2 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1069, allocations: 49.44 MB / 349.7 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005187/0.1122, allocations: 5.068 MB / 354.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.1241, allocations: 10.67 MB / 365.4 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005786/0.1247, allocations: 15.94 kB / 365.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.1263, allocations: 0.6368 MB / 366.1 MB, free: 4.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002355/0.1287, allocations: 0.8482 MB / 366.9 MB, free: 3.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.1299, allocations: 0.5264 MB / 367.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001587/0.1315, allocations: 1.361 MB / 368.8 MB, free: 1.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002462/0.1318, allocations: 193.1 kB / 369 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002433/0.1321, allocations: 286.5 kB / 369.3 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002718/0.1323, allocations: 313.9 kB / 369.6 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.847e-05/0.1324, allocations: 32 kB / 369.6 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1549/0.2873, allocations: 0.7425 MB / 370.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.2875, allocations: 108.3 kB / 370.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004856/0.288, allocations: 402.1 kB / 370.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001883/0.2899, allocations: 1.263 MB / 372.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2899, allocations: 0 / 372.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2899, allocations: 2.062 kB / 372.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.2899, allocations: 0.8125 kB / 372.1 MB, free: 11.72 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.001693/0.2916, allocations: 1.316 MB / 373.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2917, allocations: 15.66 kB / 373.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.511e-05/0.2918, allocations: 66.56 kB / 373.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.2919, allocations: 112.8 kB / 373.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008831/0.2928, allocations: 0.7433 MB / 374.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.2928, allocations: 19.53 kB / 374.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.2929, allocations: 31.8 kB / 374.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005665/0.2934, allocations: 317.9 kB / 374.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.2935, allocations: 2.312 kB / 374.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.883e-05/0.2935, allocations: 10.47 kB / 374.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.2935, allocations: 8.641 kB / 374.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005367/0.294, allocations: 279.1 kB / 375 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.2956, allocations: 1.364 MB / 376.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005797/0.2961, allocations: 304.2 kB / 376.7 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003468/0.2965, allocations: 244.7 kB / 376.9 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003117/0.2996, allocations: 3.592 MB / 380.5 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003636/0.3, allocations: 198.9 kB / 380.7 MB, free: 6.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.803e-06/0.3, allocations: 0 / 380.7 MB, free: 6.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001369/0.3014, allocations: 0.723 MB / 381.4 MB, free: 6.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.3014, allocations: 55.27 kB / 381.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007821/0.3022, allocations: 0.8129 MB / 382.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.3023, allocations: 32.02 kB / 382.3 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/0.3025, allocations: 451.3 kB / 382.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.92e-05/0.3026, allocations: 99.06 kB / 382.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.293e-05/0.3027, allocations: 70.27 kB / 382.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.351e-05/0.3027, allocations: 326.8 kB / 383.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.303, allocations: 118.3 kB / 383.4 MB, free: 5.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.3033, allocations: 226.8 kB / 383.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000501/0.3038, allocations: 366.7 kB / 384 MB, free: 5.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.3038, allocations: 4.641 kB / 384 MB, free: 5.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008227/0.3046, allocations: 0.5115 MB / 384.5 MB, free: 5.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.3046, allocations: 7.203 kB / 384.5 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.61e-05/0.3047, allocations: 35.78 kB / 384.5 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001865/0.3049, allocations: 53.55 kB / 384.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002721/0.3052, allocations: 79.81 kB / 384.6 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/0.3064, allocations: 2.851 MB / 387.5 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002772/0.3067, allocations: 43.61 kB / 387.5 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.652e-05/0.3068, allocations: 17.53 kB / 387.6 MB, free: 2.109 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 (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.0001963/0.307, allocations: 200.1 kB / 387.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.329e-05/0.3071, allocations: 115.5 kB / 387.9 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009763/0.3081, allocations: 0.4889 MB / 388.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3081, allocations: 2.531 kB / 388.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.3081, allocations: 1.344 kB / 388.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3081, allocations: 5.094 kB / 388.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004699/0.3086, allocations: 0.5443 MB / 388.9 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.969e-05/0.3086, allocations: 33.88 kB / 388.9 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002312/0.3088, allocations: 46.38 kB / 389 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001292/0.309, allocations: 62.88 kB / 389 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.309, allocations: 12.03 kB / 389.1 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.3106, allocations: 2.841 MB / 391.9 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3106, allocations: 0 / 391.9 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.3117, allocations: 0.6063 MB / 392.5 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.3119, allocations: 178.3 kB / 392.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.948e-05/0.312, allocations: 10.75 kB / 392.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.3122, allocations: 15.27 kB / 392.7 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.483e-05/0.3123, allocations: 32.22 kB / 392.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.3123, allocations: 8.531 kB / 392.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005951/0.3129, allocations: 0.5477 MB / 393.3 MB, free: 13.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3129, allocations: 1.062 kB / 393.3 MB, free: 13.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006158/0.3135, allocations: 235.8 kB / 393.5 MB, free: 13.68 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.001777/0.3153, allocations: 1.395 MB / 394.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009474/0.3163, allocations: 0.5967 MB / 395.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3163, allocations: 0.875 kB / 395.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005452/0.3168, allocations: 442.6 kB / 395.9 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.3174, allocations: 113.5 kB / 396.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009006/0.3264, allocations: 6.374 MB / 402.4 MB, free: 8.293 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.3268, allocations: 0.9583 MB / 403.4 MB, free: 7.582 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002619/0.3271, allocations: 85.77 kB / 403.5 MB, free: 7.562 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003054/0.3274, allocations: 333.8 kB / 403.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3274, allocations: 0 / 403.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.189/1.517, allocations: 17.09 MB / 420.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003072/1.517, allocations: 236.2 kB / 421.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.721/4.238, allocations: 0 / 421.1 MB, free: 8.023 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)