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.00157/0.00157, allocations: 112.4 kB / 17.06 MB, free: 5.973 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.001766/0.001767, allocations: 200 kB / 18.01 MB, free: 5.055 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.386/1.386, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 43.94 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2907, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006772/0.2975, allocations: 5.074 MB / 405.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01463/0.3122, allocations: 10.76 MB / 416.1 MB, free: 8.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001002/0.3133, allocations: 31.75 kB / 416.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002397/0.3158, allocations: 0.6999 MB / 416.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004176/0.32, allocations: 1.01 MB / 417.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002192/0.3222, allocations: 0.6076 MB / 418.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002851/0.3251, allocations: 1.361 MB / 419.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004015/0.3255, allocations: 169.2 kB / 419.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004892/0.326, allocations: 298.5 kB / 420.2 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000513/0.3266, allocations: 317.9 kB / 420.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.3267, allocations: 32 kB / 420.6 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002101/0.3288, allocations: 0.7453 MB / 421.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.329, allocations: 111.3 kB / 421.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005241/0.3295, allocations: 401.4 kB / 421.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002525/0.3321, allocations: 1.261 MB / 423.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.3321, allocations: 3.938 kB / 423.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3321, allocations: 4 kB / 423.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.794e-05/0.3322, allocations: 0 / 423.1 MB, free: 1.852 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.002482/0.3347, allocations: 1.319 MB / 424.4 MB, free: 488 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.3347, allocations: 12.03 kB / 424.4 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.348e-05/0.3348, allocations: 70.66 kB / 424.5 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.335, allocations: 115.5 kB / 424.6 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.3363, allocations: 0.7469 MB / 425.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.3363, allocations: 20.5 kB / 425.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.515e-05/0.3364, allocations: 32 kB / 425.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006624/0.3371, allocations: 317.3 kB / 425.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.3371, allocations: 8 kB / 425.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.243e-05/0.3372, allocations: 8 kB / 425.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.3372, allocations: 12 kB / 425.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006343/0.3378, allocations: 278.2 kB / 426 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002226/0.3401, allocations: 1.364 MB / 427.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007098/0.3408, allocations: 294.5 kB / 427.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00042/0.3413, allocations: 244.6 kB / 427.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004591/0.3459, allocations: 3.6 MB / 431.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004534/0.3464, allocations: 193.1 kB / 431.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 4.318e-06/0.3464, allocations: 0 / 431.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001677/0.3481, allocations: 0.7265 MB / 432.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.3482, allocations: 55.41 kB / 432.5 MB, free: 7.621 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001069/0.3492, allocations: 0.8154 MB / 433.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.638e-05/0.3493, allocations: 33.64 kB / 433.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003627/0.3497, allocations: 448.4 kB / 433.8 MB, free: 6.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.3498, allocations: 98.58 kB / 433.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.35, allocations: 73.92 kB / 433.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.3501, allocations: 329.8 kB / 434.3 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003245/0.3504, allocations: 112.7 kB / 434.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.3508, allocations: 236 kB / 434.6 MB, free: 5.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006423/0.3515, allocations: 361.3 kB / 434.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.3515, allocations: 0 / 434.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001081/0.3526, allocations: 0.5209 MB / 435.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.3526, allocations: 6.5 kB / 435.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.868e-05/0.3527, allocations: 32.44 kB / 435.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002565/0.3529, allocations: 57.69 kB / 435.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003153/0.3533, allocations: 71.88 kB / 435.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002265/0.3555, allocations: 2.848 MB / 438.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004215/0.356, allocations: 47.61 kB / 438.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.264e-05/0.3561, allocations: 19.98 kB / 438.5 MB, free: 1.121 MB / 350.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.0003791/0.3565, allocations: 213.7 kB / 438.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/0.3567, allocations: 110.7 kB / 438.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001155/0.3578, allocations: 485.8 kB / 439.3 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.3579, allocations: 4 kB / 439.3 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3579, allocations: 0 / 439.3 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3579, allocations: 0 / 439.3 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007812/0.3587, allocations: 0.5622 MB / 439.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.863e-05/0.3587, allocations: 31.94 kB / 439.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/0.359, allocations: 39.95 kB / 440 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001854/0.3592, allocations: 57.69 kB / 440 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.706e-05/0.3592, allocations: 11.94 kB / 440 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002016/0.3613, allocations: 2.848 MB / 442.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.3613, allocations: 3.984 kB / 442.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.3626, allocations: 0.5958 MB / 443.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002836/0.3629, allocations: 183.8 kB / 443.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.363, allocations: 8 kB / 443.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.3633, allocations: 15.97 kB / 443.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.3634, allocations: 27.91 kB / 443.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.425e-05/0.3635, allocations: 16.06 kB / 443.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007787/0.3643, allocations: 0.5506 MB / 444.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3643, allocations: 0 / 444.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007956/0.3651, allocations: 235.7 kB / 444.5 MB, free: 10.74 MB / 366.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.00225/0.3673, allocations: 1.402 MB / 445.9 MB, free: 9.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.3686, allocations: 0.5849 MB / 446.5 MB, free: 8.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.3686, allocations: 0.875 kB / 446.5 MB, free: 8.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006826/0.3693, allocations: 448.7 kB / 446.9 MB, free: 8.211 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000783/0.3701, allocations: 108.3 kB / 447 MB, free: 8.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009814/0.38, allocations: 5.773 MB / 452.8 MB, free: 2.105 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/0.3806, allocations: 0.96 MB / 453.8 MB, free: 1.117 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002853/0.3809, allocations: 85.2 kB / 453.9 MB, free: 1.035 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003805/0.3813, allocations: 331.3 kB / 454.2 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3813, allocations: 4 kB / 454.2 MB, free: 0.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05147/0.4328, allocations: 17.49 MB / 471.7 MB, free: 15.42 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.95, allocations: 4.688 kB / 471.7 MB, free: 15.42 MB / 398.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)