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.001142/0.001142, allocations: 101.6 kB / 17.72 MB, free: 5.359 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.001164/0.001164, allocations: 188.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.332/1.332, 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.001266/0.001266, allocations: 59.91 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.09214, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006746/0.09893, allocations: 5.018 MB / 379.7 MB, free: 56 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2012/0.3002, allocations: 10.43 MB / 390.1 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008282/0.3011, allocations: 29.25 kB / 390.1 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001853/0.303, allocations: 0.6856 MB / 390.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003639/0.3066, allocations: 0.9832 MB / 391.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001896/0.3086, allocations: 0.6028 MB / 392.4 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002287/0.3109, allocations: 1.339 MB / 393.7 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003125/0.3112, allocations: 175.4 kB / 393.9 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000445/0.3117, allocations: 279.3 kB / 394.2 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003598/0.312, allocations: 321.1 kB / 394.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.563e-05/0.3121, allocations: 31.78 kB / 394.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002097/0.3142, allocations: 0.6709 MB / 395.2 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.3143, allocations: 109.9 kB / 395.3 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003461/0.3147, allocations: 407.2 kB / 395.7 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001797/0.3165, allocations: 1.265 MB / 397 MB, free: 1.094 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3165, allocations: 0 / 397 MB, free: 1.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3165, allocations: 1.031 kB / 397 MB, free: 1.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.3165, 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.001844/0.3184, allocations: 1.32 MB / 398.3 MB, free: 152 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.3184, allocations: 9.344 kB / 398.3 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.974e-05/0.3185, allocations: 64.52 kB / 398.3 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001548/0.3187, allocations: 117.9 kB / 398.5 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.3199, allocations: 0.7513 MB / 399.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.32, allocations: 18.94 kB / 399.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.218e-05/0.32, allocations: 30.72 kB / 399.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006553/0.3207, allocations: 319.4 kB / 399.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.3207, allocations: 0 / 399.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.3207, allocations: 12.02 kB / 399.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.3208, allocations: 7.672 kB / 399.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006048/0.3214, allocations: 281.4 kB / 399.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.3235, allocations: 1.372 MB / 401.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006899/0.3243, allocations: 297.5 kB / 401.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000404/0.3247, allocations: 252 kB / 401.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004253/0.3289, allocations: 3.584 MB / 405.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004016/0.3294, allocations: 193.5 kB / 405.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.635e-06/0.3294, allocations: 0 / 405.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.00162/0.331, allocations: 0.7295 MB / 406.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.3311, allocations: 61.22 kB / 406.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009752/0.332, allocations: 0.8119 MB / 407.1 MB, free: 9.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.3321, allocations: 32.67 kB / 407.2 MB, free: 9.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003281/0.3324, allocations: 450.9 kB / 407.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.07e-05/0.3325, allocations: 103.5 kB / 407.7 MB, free: 9.477 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.3326, allocations: 77.06 kB / 407.8 MB, free: 9.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3327, allocations: 321.3 kB / 408.1 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.333, allocations: 116.9 kB / 408.2 MB, free: 9.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003417/0.3334, allocations: 216.9 kB / 408.4 MB, free: 8.867 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006112/0.334, allocations: 364.9 kB / 408.8 MB, free: 8.598 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.334, allocations: 1.562 kB / 408.8 MB, free: 8.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001032/0.3351, allocations: 0.5189 MB / 409.3 MB, free: 8.312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.3351, allocations: 11.88 kB / 409.3 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.107e-05/0.3352, allocations: 38.67 kB / 409.4 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002451/0.3354, allocations: 54.44 kB / 409.4 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003108/0.3357, allocations: 77.05 kB / 409.5 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002126/0.3379, allocations: 2.845 MB / 412.3 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004715/0.3384, allocations: 37.98 kB / 412.4 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.456e-05/0.3384, allocations: 19.97 kB / 412.4 MB, free: 5.285 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.0003338/0.3388, allocations: 211.1 kB / 412.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.3389, allocations: 104.4 kB / 412.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.3401, allocations: 0.4916 MB / 413.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3401, allocations: 2.188 kB / 413.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3401, allocations: 1 kB / 413.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.3401, allocations: 4.859 kB / 413.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008095/0.3409, allocations: 0.5498 MB / 413.8 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-05/0.341, allocations: 32.81 kB / 413.8 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.3413, allocations: 47.67 kB / 413.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001554/0.3414, allocations: 46.94 kB / 413.9 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.3415, allocations: 13.58 kB / 413.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002062/0.3435, allocations: 2.845 MB / 416.7 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3436, allocations: 1.062 kB / 416.7 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.3449, allocations: 0.6037 MB / 417.3 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003756/0.3453, allocations: 185.4 kB / 417.5 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.3455, allocations: 5.125 kB / 417.5 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003122/0.3458, allocations: 20.33 kB / 417.5 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.239e-05/0.3459, allocations: 24.66 kB / 417.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/0.346, allocations: 9.312 kB / 417.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008925/0.3469, allocations: 0.5499 MB / 418.1 MB, free: 440 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3469, allocations: 3.938 kB / 418.1 MB, free: 436 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009056/0.3478, allocations: 239.5 kB / 418.4 MB, free: 384 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.002354/0.3501, allocations: 1.414 MB / 419.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.3513, allocations: 0.5759 MB / 420.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3514, allocations: 4.062 kB / 420.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006293/0.352, allocations: 440.3 kB / 420.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006811/0.3527, allocations: 101.5 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.009639/0.3623, allocations: 5.781 MB / 426.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005413/0.3629, allocations: 0.96 MB / 427.6 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002623/0.3632, allocations: 89.19 kB / 427.7 MB, free: 8.762 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/0.3635, allocations: 331.3 kB / 428 MB, free: 8.438 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3636, allocations: 0 / 428 MB, free: 8.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04921/0.4128, allocations: 17.78 MB / 445.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.99, allocations: 8.062 kB / 445.8 MB, free: 6.586 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)