Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002276/0.002276, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.281/2.281, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.001149, allocations: 102.8 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000402/0.0004021, allocations: 12 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09904/0.09948, allocations: 47.57 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006368/0.1059, allocations: 4.095 MB / 378.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01603/0.122, allocations: 9.047 MB / 387.8 MB, free: 2.137 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000773/0.1228, allocations: 8 kB / 387.8 MB, free: 2.129 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002522/0.1254, allocations: 0.6106 MB / 388.4 MB, free: 1.516 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003887/0.1293, allocations: 0.8372 MB / 389.2 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.1312, allocations: 411.3 kB / 389.6 MB, free: 280 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.2816/0.4129, allocations: 1.252 MB / 390.9 MB, free: 9.742 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007055/0.4136, allocations: 150.8 kB / 391 MB, free: 9.703 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005704/0.4142, allocations: 241.3 kB / 391.3 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004331/0.4147, allocations: 281.1 kB / 391.5 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.791e-05/0.4148, allocations: 16.5 kB / 391.6 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003342/0.4181, allocations: 0.6639 MB / 392.2 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003162/0.4185, allocations: 87.73 kB / 392.3 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005375/0.4191, allocations: 191.4 kB / 392.5 MB, free: 9.668 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002279/0.4214, allocations: 0.8745 MB / 393.4 MB, free: 9.566 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.4214, allocations: 0 / 393.4 MB, free: 9.566 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.859e-06/0.4214, allocations: 0 / 393.4 MB, free: 9.566 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.288e-05/0.4215, allocations: 3.375 kB / 393.4 MB, free: 9.566 MB / 282.7 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.003874/0.4254, allocations: 1.203 MB / 394.6 MB, free: 8.762 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.844e-05/0.4254, allocations: 9.281 kB / 394.6 MB, free: 8.762 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002099/0.4257, allocations: 67.02 kB / 394.7 MB, free: 8.723 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003012/0.426, allocations: 113.8 kB / 394.8 MB, free: 8.668 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002461/0.4285, allocations: 0.7004 MB / 395.5 MB, free: 8.348 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.835e-05/0.4286, allocations: 25.55 kB / 395.5 MB, free: 8.348 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.4287, allocations: 28.02 kB / 395.5 MB, free: 8.344 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.4303, allocations: 324 kB / 395.8 MB, free: 8.312 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.4303, allocations: 0 / 395.8 MB, free: 8.312 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.612e-05/0.4304, allocations: 15.27 kB / 395.8 MB, free: 8.312 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.007e-05/0.4305, allocations: 10.16 kB / 395.9 MB, free: 8.312 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.4321, allocations: 294.8 kB / 396.1 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004308/0.4364, allocations: 1.376 MB / 397.5 MB, free: 7.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.4381, allocations: 320.3 kB / 397.8 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008692/0.4468, allocations: 3.62 MB / 401.5 MB, free: 4.754 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009323/0.4478, allocations: 200.5 kB / 401.6 MB, free: 4.703 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 4.899e-06/0.4478, allocations: 0 / 401.6 MB, free: 4.703 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.003771/0.4516, allocations: 0.8429 MB / 402.5 MB, free: 4.301 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.4517, allocations: 63.34 kB / 402.6 MB, free: 4.234 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002238/0.454, allocations: 0.8071 MB / 403.4 MB, free: 4.082 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.4541, allocations: 29.33 kB / 403.4 MB, free: 4.051 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004863/0.4546, allocations: 434.3 kB / 403.8 MB, free: 3.844 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.4548, allocations: 99.88 kB / 403.9 MB, free: 3.781 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.073e-05/0.4549, allocations: 7.281 kB / 403.9 MB, free: 3.781 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.562e-05/0.455, allocations: 327.2 kB / 404.2 MB, free: 3.469 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000744/0.4558, allocations: 121.7 kB / 404.4 MB, free: 3.469 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008344/0.4566, allocations: 239.9 kB / 404.6 MB, free: 3.344 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007733/0.4574, allocations: 151.5 kB / 404.7 MB, free: 3.336 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.4574, allocations: 0.9688 kB / 404.7 MB, free: 3.336 MB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002172/0.4596, allocations: 457.9 kB / 405.2 MB, free: 3.262 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.4597, allocations: 6 kB / 405.2 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/0.4598, allocations: 33.86 kB / 405.2 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004289/0.4603, allocations: 60.16 kB / 405.3 MB, free: 3.242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007677/0.4611, allocations: 76.31 kB / 405.4 MB, free: 3.242 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002998/0.4641, allocations: 2.659 MB / 408 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.4653, allocations: 55.77 kB / 408.1 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.011e-05/0.4654, allocations: 17.44 kB / 408.1 MB, free: 0.6992 MB / 282.7 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.0006952/0.4661, allocations: 204.8 kB / 408.3 MB, free: 0.582 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002888/0.4664, allocations: 104.5 kB / 408.4 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002725/0.4692, allocations: 0.5145 MB / 408.9 MB, free: 436 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.4692, allocations: 3.281 kB / 408.9 MB, free: 436 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.4692, allocations: 4.891 kB / 408.9 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.4693, allocations: 8.641 kB / 408.9 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.4709, allocations: 0.5428 MB / 409.5 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001111/0.471, allocations: 32.44 kB / 409.5 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006408/0.4717, allocations: 46.05 kB / 409.5 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003542/0.4721, allocations: 55.12 kB / 409.6 MB, free: 208 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.611e-05/0.4721, allocations: 9.016 kB / 409.6 MB, free: 208 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003864/0.476, allocations: 2.665 MB / 412.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.4761, allocations: 1.5 kB / 412.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003182/0.4793, allocations: 0.625 MB / 412.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007094/0.4801, allocations: 192 kB / 413.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002135/0.4803, allocations: 6.312 kB / 413.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00063/0.481, allocations: 16.91 kB / 413.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.4812, allocations: 29.23 kB / 413.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.777e-05/0.4813, allocations: 16.33 kB / 413.2 MB, free: 13.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001655/0.4829, allocations: 0.5367 MB / 413.7 MB, free: 13.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.483, allocations: 0 / 413.7 MB, free: 13.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002067/0.4851, allocations: 243.2 kB / 413.9 MB, free: 13.22 MB / 298.7 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.005086/0.4902, allocations: 1.415 MB / 415.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002385/0.4927, allocations: 0.6046 MB / 415.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.4927, allocations: 1.75 kB / 415.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.4941, allocations: 449.4 kB / 416.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.4953, allocations: 102.2 kB / 416.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02464/0.5199, allocations: 6.922 MB / 423.4 MB, free: 7.551 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009783/0.521, allocations: 0.9753 MB / 424.4 MB, free: 6.719 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008308/0.5218, allocations: 334.5 kB / 424.7 MB, free: 6.688 MB / 298.7 MB Notification: Performance of SimCode: time 3.216e-06/0.5219, allocations: 0 / 424.7 MB, free: 6.688 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.071/3.593, allocations: 20.44 MB / 445.1 MB, free: 2.758 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)