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.001573/0.001573, allocations: 101.5 kB / 17.72 MB, free: 5.371 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.001782/0.001783, allocations: 192 kB / 18.66 MB, free: 4.445 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.36/1.36, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001398/0.001398, allocations: 55.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09753/0.09893, allocations: 46.61 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006278/0.1053, allocations: 5.018 MB / 379.7 MB, free: 60 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2165/0.3218, allocations: 10.44 MB / 390.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009849/0.3229, allocations: 28.69 kB / 390.1 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002394/0.3253, allocations: 0.6782 MB / 390.8 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004345/0.3297, allocations: 0.9875 MB / 391.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002237/0.3319, allocations: 0.5941 MB / 392.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002524/0.3345, allocations: 1.354 MB / 393.7 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003312/0.3348, allocations: 175.8 kB / 393.9 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004838/0.3353, allocations: 274.4 kB / 394.2 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.3357, allocations: 310.7 kB / 394.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.368e-05/0.3357, allocations: 32.84 kB / 394.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002021/0.3378, allocations: 0.676 MB / 395.2 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.3379, allocations: 114.3 kB / 395.3 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003525/0.3383, allocations: 402.8 kB / 395.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001805/0.3401, allocations: 1.266 MB / 397 MB, free: 1.102 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.3401, allocations: 4 kB / 397 MB, free: 1.098 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3401, allocations: 1.312 kB / 397 MB, free: 1.098 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.249e-05/0.3401, allocations: 0 / 397 MB, free: 1.098 MB / 318.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.00199/0.3421, allocations: 1.315 MB / 398.3 MB, free: 160 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3422, allocations: 9.125 kB / 398.3 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.354e-05/0.3423, allocations: 69.44 kB / 398.4 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.3424, allocations: 117.3 kB / 398.5 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.3436, allocations: 0.7436 MB / 399.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.987e-05/0.3437, allocations: 23.33 kB / 399.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.497e-05/0.3437, allocations: 26.78 kB / 399.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006994/0.3444, allocations: 318.2 kB / 399.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.3445, allocations: 0.7031 kB / 399.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.3445, allocations: 11.12 kB / 399.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.834e-05/0.3445, allocations: 12.34 kB / 399.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007487/0.3453, allocations: 277.3 kB / 399.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002463/0.3478, allocations: 1.37 MB / 401.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007764/0.3486, allocations: 300.7 kB / 401.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000475/0.349, allocations: 249.8 kB / 401.8 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004735/0.3538, allocations: 3.588 MB / 405.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004045/0.3542, allocations: 196.2 kB / 405.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.465e-06/0.3542, allocations: 0 / 405.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001808/0.356, allocations: 0.7271 MB / 406.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.3561, allocations: 66.7 kB / 406.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.3572, allocations: 0.8133 MB / 407.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.3573, allocations: 32.14 kB / 407.2 MB, free: 9.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/0.3576, allocations: 451.8 kB / 407.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.724e-05/0.3577, allocations: 94.33 kB / 407.7 MB, free: 9.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.3578, allocations: 73.34 kB / 407.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.358, allocations: 321.5 kB / 408.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/0.3583, allocations: 116.1 kB / 408.2 MB, free: 9.066 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.3587, allocations: 221.5 kB / 408.4 MB, free: 8.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006696/0.3593, allocations: 357.2 kB / 408.8 MB, free: 8.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.3593, allocations: 1.094 kB / 408.8 MB, free: 8.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001043/0.3604, allocations: 0.5271 MB / 409.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.3604, allocations: 6.438 kB / 409.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.699e-05/0.3605, allocations: 39.7 kB / 409.4 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002383/0.3607, allocations: 55.94 kB / 409.4 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003188/0.3611, allocations: 77.89 kB / 409.5 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/0.3634, allocations: 2.852 MB / 412.3 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004625/0.3639, allocations: 39.17 kB / 412.4 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.246e-05/0.364, allocations: 23.98 kB / 412.4 MB, free: 5.281 MB / 334.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.0003432/0.3643, allocations: 207.2 kB / 412.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.3645, allocations: 103.2 kB / 412.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.3657, allocations: 495.6 kB / 413.2 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.3657, allocations: 9.438 kB / 413.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3657, allocations: 1.188 kB / 413.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.3657, allocations: 5.078 kB / 413.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007816/0.3665, allocations: 0.5502 MB / 413.8 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.112e-05/0.3666, allocations: 28.62 kB / 413.8 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/0.3668, allocations: 43.45 kB / 413.8 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001881/0.367, allocations: 55.44 kB / 413.9 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/0.3671, allocations: 12.17 kB / 413.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00206/0.3691, allocations: 2.843 MB / 416.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3692, allocations: 0 / 416.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.3705, allocations: 0.5995 MB / 417.3 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000307/0.3708, allocations: 193.5 kB / 417.5 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.586e-05/0.3709, allocations: 2.375 kB / 417.5 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.3711, allocations: 14.14 kB / 417.5 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.3713, allocations: 30.19 kB / 417.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.679e-05/0.3713, allocations: 16.97 kB / 417.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008114/0.3721, allocations: 0.5498 MB / 418.1 MB, free: 436 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3721, allocations: 3.938 kB / 418.1 MB, free: 432 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009387/0.3731, allocations: 238.8 kB / 418.4 MB, free: 380 kB / 334.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.002076/0.3752, allocations: 1.401 MB / 419.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.3763, allocations: 0.5872 MB / 420.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3763, allocations: 0.875 kB / 420.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000606/0.3769, allocations: 444.2 kB / 420.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000536/0.3774, allocations: 99.67 kB / 420.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008145/0.3856, allocations: 5.773 MB / 426.7 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.3861, allocations: 0.96 MB / 427.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002465/0.3864, allocations: 81.2 kB / 427.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/0.3867, allocations: 343.3 kB / 428 MB, free: 8.445 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3867, allocations: 0 / 428 MB, free: 8.445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04444/0.4312, allocations: 17.78 MB / 445.8 MB, free: 6.598 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.09, allocations: 7.938 kB / 445.8 MB, free: 6.59 MB / 366.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)