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.001386/0.001386, allocations: 113.9 kB / 17.74 MB, free: 5.355 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.001372/0.001372, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.449/1.449, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001893/0.001893, allocations: 59.91 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09272/0.09462, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006754/0.1014, allocations: 5.018 MB / 379.7 MB, free: 48 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1939/0.2954, allocations: 10.44 MB / 390.1 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008555/0.2964, allocations: 30.41 kB / 390.1 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002037/0.2984, allocations: 0.6738 MB / 390.8 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004127/0.3026, allocations: 0.9899 MB / 391.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.3048, allocations: 0.5978 MB / 392.4 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002643/0.3074, allocations: 1.339 MB / 393.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003057/0.3078, allocations: 181.2 kB / 393.9 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003952/0.3082, allocations: 277.3 kB / 394.2 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.3085, allocations: 309.2 kB / 394.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.33e-05/0.3086, allocations: 32.47 kB / 394.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001701/0.3103, allocations: 0.6801 MB / 395.2 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.823e-05/0.3104, allocations: 110.2 kB / 395.3 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002812/0.3107, allocations: 407.9 kB / 395.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001581/0.3123, allocations: 1.269 MB / 397 MB, free: 1.098 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3123, allocations: 4 kB / 397 MB, free: 1.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3123, allocations: 1.094 kB / 397 MB, free: 1.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.3123, allocations: 0 / 397 MB, free: 1.094 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.001846/0.3142, allocations: 1.353 MB / 398.3 MB, free: 116 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.3142, allocations: 9.281 kB / 398.3 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.401e-05/0.3143, allocations: 68.42 kB / 398.4 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.3145, allocations: 123.2 kB / 398.5 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.3157, allocations: 0.7518 MB / 399.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.3157, allocations: 19.58 kB / 399.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.875e-05/0.3158, allocations: 29.34 kB / 399.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006848/0.3165, allocations: 320 kB / 399.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.3165, allocations: 0 / 399.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.598e-05/0.3166, allocations: 15.2 kB / 399.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.3166, allocations: 11.94 kB / 399.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000676/0.3173, allocations: 277.7 kB / 399.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00208/0.3193, allocations: 1.37 MB / 401.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007008/0.3201, allocations: 292.8 kB / 401.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000458/0.3205, allocations: 257.5 kB / 401.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004665/0.3252, allocations: 3.591 MB / 405.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004259/0.3257, allocations: 194.5 kB / 405.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.883e-06/0.3257, allocations: 0 / 405.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001691/0.3274, allocations: 0.7357 MB / 406.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.3274, allocations: 58.16 kB / 406.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001153/0.3286, allocations: 0.8126 MB / 407.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.3287, allocations: 30.8 kB / 407.3 MB, free: 9.895 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000421/0.3291, allocations: 455 kB / 407.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.3292, allocations: 104.2 kB / 407.8 MB, free: 9.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.3294, allocations: 77.31 kB / 407.9 MB, free: 9.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3296, allocations: 320.9 kB / 408.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003151/0.3299, allocations: 117 kB / 408.3 MB, free: 8.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.3303, allocations: 220.7 kB / 408.5 MB, free: 8.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007097/0.331, allocations: 364.8 kB / 408.9 MB, free: 8.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.331, allocations: 1.219 kB / 408.9 MB, free: 8.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001094/0.3321, allocations: 0.5243 MB / 409.4 MB, free: 8.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.3322, allocations: 5.625 kB / 409.4 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.832e-05/0.3322, allocations: 32.19 kB / 409.4 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002405/0.3325, allocations: 63.56 kB / 409.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.3328, allocations: 72.42 kB / 409.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00256/0.3353, allocations: 2.857 MB / 412.4 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005039/0.3359, allocations: 46.97 kB / 412.5 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-05/0.3359, allocations: 20.69 kB / 412.5 MB, free: 5.195 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.0003597/0.3363, allocations: 198.5 kB / 412.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.3365, allocations: 108.2 kB / 412.8 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.3377, allocations: 0.4915 MB / 413.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3377, allocations: 2.656 kB / 413.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3377, allocations: 1.25 kB / 413.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3377, allocations: 3.938 kB / 413.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008588/0.3386, allocations: 0.5544 MB / 413.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.815e-05/0.3387, allocations: 29.72 kB / 413.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000263/0.3389, allocations: 48.08 kB / 413.9 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001656/0.3391, allocations: 50.97 kB / 414 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.3391, allocations: 9.656 kB / 414 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002514/0.3417, allocations: 2.845 MB / 416.8 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/0.3417, allocations: 7.875 kB / 416.8 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.3431, allocations: 0.6073 MB / 417.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003475/0.3434, allocations: 186 kB / 417.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.779e-05/0.3435, allocations: 6.156 kB / 417.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.3438, allocations: 16.12 kB / 417.6 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.757e-05/0.3439, allocations: 29.47 kB / 417.7 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.615e-05/0.3439, allocations: 16.91 kB / 417.7 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008139/0.3447, allocations: 0.5496 MB / 418.2 MB, free: 340 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3448, allocations: 0 / 418.2 MB, free: 340 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009685/0.3457, allocations: 243.2 kB / 418.5 MB, free: 284 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.002363/0.3481, allocations: 1.413 MB / 419.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.3493, allocations: 0.5912 MB / 420.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3493, allocations: 0.875 kB / 420.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00065/0.35, allocations: 439.9 kB / 420.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005636/0.3506, allocations: 91.98 kB / 421 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00923/0.3598, allocations: 5.826 MB / 426.8 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000734/0.3606, allocations: 0.9561 MB / 427.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003057/0.3609, allocations: 85.19 kB / 427.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004621/0.3614, allocations: 335.3 kB / 428.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3614, allocations: 3.938 kB / 428.2 MB, free: 8.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05612/0.4175, allocations: 17.49 MB / 445.7 MB, free: 6.719 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.53, allocations: 7.938 kB / 445.7 MB, free: 6.711 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)